I have a Javascript shortcut that, when clicked on, redirects the user to a new web page and supplies the URL of the old web page as a parameter in the query string.
I am having a problem where the original webpage has a double hyphen in the url (e.g. page--1--of--3.html ). Silly, I know - I canβt control the original page. The javascript escape function that I use does not go beyond a hyphen, and IIS 6 gives a file error not found in the service request resource.aspx?original=page--1--of--3.html
Is there an alternative javascript escape function that I can use? What is the best way to solve this problem? Does anyone know why IIS is choking on resource.aspx?original=page--1 , not page-1 ?
source share