[ https://issues.apache.org/jira/browse/JSPWIKI-1181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17770858#comment-17770858 ]
Arturo Bernal commented on JSPWIKI-1181: ---------------------------------------- [~udittmer] pelase take a look [https://github.com/apache/jspwiki/pull/310] I've identified the issue with the URL generation for pages with special characters. The problem was in the `toUrl` function, which didn't account for special characters like '/'. I've updated this function to handle such cases correctly, ensuring that the generated URLs are both accurate and functional. > Search popup does not handle attachments correctly > -------------------------------------------------- > > Key: JSPWIKI-1181 > URL: https://issues.apache.org/jira/browse/JSPWIKI-1181 > Project: JSPWiki > Issue Type: Bug > Components: Templates and UI > Affects Versions: 2.12.1 > Reporter: Ulf Dittmer > Priority: Minor > Labels: pull-request-available > > If a search finds an attachment, that is not rendered correctly in the search > popup. A JavaScript error happens (see below), and the link to the attachment > is broken. This can be seen on [https://jspwiki-wiki.apache.org/] when > searching for 'pdf' for the result "Pic/pdf.png". > {quote}XML Parsing Error: syntax error Location: > [https://jspwiki-wiki.apache.org/ajax/search/pages] Line Number 1, Column 1 > {quote} > When bringing up the full search page, this is handled correctly. -- This message was sent by Atlassian Jira (v8.20.10#820010)