How can I get page URL from window.location.href without decode in javascript?
For example we can not get exactly this URL: http://example.com/report#title=example_report&url=project_chart%2F%3Fproject_id%3D77.
When we use window.location.href in javascript , we will get this URL:
http://example.com/report#title=example_report&url=project_chart/?project_id=77.
But I want to get exactly the same real URL.
Any solution?
Edited
as @Eugenio told, $(document)[0].URL works fine , but Is it safe?!
http://example.com/report#title=example_report&url=project_chart%2F%3Fproject_id%3D77document.url?