Navigation Menu

Skip to content

Commit

Permalink
issue #7127 Broken links on generated documentation
Browse files Browse the repository at this point in the history
Make identifier in the `.js` files unique (they are only used internally)
  • Loading branch information
albert-github committed Jul 20, 2019
1 parent b118de2 commit 7fec9f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/searchindex.cpp
Expand Up @@ -956,6 +956,7 @@ void createJavascriptSearchIndex()
void writeJavascriptSearchIndex()
{
int i;
int cnt = 0;
// write index files
QCString searchDirName = Config_getString(HTML_OUTPUT)+"/search";

Expand Down Expand Up @@ -1043,7 +1044,7 @@ void writeJavascriptSearchIndex()
}
firstEntry=FALSE;

ti << " ['" << dl->id() << "',['" << convertToXML(dl->name()) << "',[";
ti << " ['" << dl->id() << "_" << cnt++ << "',['" << convertToXML(dl->name()) << "',[";

if (dl->count()==1) // item with a unique name
{
Expand Down

0 comments on commit 7fec9f5

Please sign in to comment.