From 7fec9f51eb5fadaa933adc201d72c36f57fc5df1 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 20 Jul 2019 11:27:22 +0200 Subject: issue #7127 Broken links on generated documentation Make identifier in the `.js` files unique (they are only used internally) --- src/searchindex.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- cgit v0.12