From a06eb69b494d20a0e8abff5e28d6efc898f04bbb Mon Sep 17 00:00:00 2001 From: albert-github Date: Wed, 26 Jan 2022 15:39:42 +0100 Subject: [PATCH] issue #9074 Menubar Links not Parsed Correctly The handling in the navtree was done in such a way that absolute links were prepended with a `^`, in the menus this was not done, this has been corrected. --- src/index.cpp | 1 + templates/html/menu.js | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/index.cpp b/src/index.cpp index fde6783e2fe..24a62823c12 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -5119,6 +5119,7 @@ static bool renderQuickLinksAsJs(std::ostream &t,LayoutNavEntry *root,bool first if (!firstChild) t << ",\n"; firstChild=FALSE; QCString url = entry->url(); + if (isURL(url)) url = "^" + url; t << "{text:\"" << convertToJSString(entry->title()) << "\",url:\"" << convertToJSString(url) << "\""; bool hasChildren=FALSE; diff --git a/templates/html/menu.js b/templates/html/menu.js index 54e81cf15c4..818b859b7a1 100644 --- a/templates/html/menu.js +++ b/templates/html/menu.js @@ -28,7 +28,15 @@ function initMenu(relPath,searchEnabled,serverSide,searchPage,search) { if ('children' in data) { result+='