summaryrefslogtreecommitdiffstats
path: root/src/searchindex.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-07-20 09:27:22 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-07-20 09:27:22 (GMT)
commit7fec9f51eb5fadaa933adc201d72c36f57fc5df1 (patch)
tree8e7a153c7262b843ed18ef3c3d1ca5b8efd09d05 /src/searchindex.cpp
parentb118de2f38cfcb91888db571b5d9fd1a85731cd5 (diff)
downloadDoxygen-7fec9f51eb5fadaa933adc201d72c36f57fc5df1.zip
Doxygen-7fec9f51eb5fadaa933adc201d72c36f57fc5df1.tar.gz
Doxygen-7fec9f51eb5fadaa933adc201d72c36f57fc5df1.tar.bz2
issue #7127 Broken links on generated documentation
Make identifier in the `.js` files unique (they are only used internally)
Diffstat (limited to 'src/searchindex.cpp')
-rw-r--r--src/searchindex.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/searchindex.cpp b/src/searchindex.cpp
index babefe9..e5f9ac8 100644
--- a/src/searchindex.cpp
+++ b/src/searchindex.cpp
@@ -956,6 +956,7 @@ void createJavascriptSearchIndex()
void writeJavascriptSearchIndex()
{
int i;
+ int cnt = 0;
// write index files
QCString searchDirName = Config_getString(HTML_OUTPUT)+"/search";
@@ -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
{