Percent (%) in URL prevent stripSelfNamedAnchors from working
|Reported by:||guest||Owned by:||gogo|
If a percent (%) is contained within the QueryString?, the method fixRelativeLinks doesn't work anymore regarding to stripSelfNamedAnchors.
In fixRelativeLinks, using unescape() on the document.location before extracting the anchor name using a regular expression fixed it.
I attached two files : ticket.html that fails, and ticketfixed.html that works.
To reproduce the problem, you need to :
1) Put both html files under the examples directory of your Xinha distribution
2) Access ticket.html from your web server (NOT using file:///) with a percent in your query string, for example : http://localhost/xinha/examples/ticket.html?A%7DB
Switch to html view, then to wysiwyg, then to html view again. Your relative link will be converted to an absolute link. It should not.
Try again with ticketfixed.html and it works.