Problem Statement:
Browser is showing “Page cannot be found” error for only one document.
Ok, what is the bug here?
Browser is not able to trace the document using the specified URL.
How the problem was identified?
I have verified the database whether the specified document is available or not. Later, I have taken the document name from database and replaced the document name from the part of the URL in the browser. Then, I can see the document in the browser. Finally, I came to know that the problem is with special characters which are the part of the document name.
Solution provided:
Quick solution provided:
I have updated the database by removing the special character.
Suggested solution:
I have updated the javascript code as below to handle special characters in URL.
Previous Code: -
location.href = “<%=url%>”;
Updated Code: -
location.href = escape(“<%=url%>”);