Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ THE SOFTWARE.
<ol>
<j:forEach var="i" items="${items}">
<li id="item_${i.path}">
<a href="?q=${h.urlEncode(i.path)}">${i.path}</a>
<a href="${rootURL}/${i.url}">${i.path}</a>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the rootURL is empty this leads to a url that starts with a double slash. This results in a url like https://design-library (see https://weekly.ci.jenkins.io/search/?q=g)
So when i.url starts with a slash it must be removed first. Not sure but it seems the url is always absolute with respect to the root url so just removing the slash in here might be enough.

</li>
</j:forEach>
</ol>
Expand Down
Loading