Question: How do I stop IE from stripping off parameters from file URI pasted into address bar?
Description of a problem: I have a "simpleTest.html" page with only this JS code inside, that returns the current location of the browser:
console.log("document.URL: " + document.URL); console.log("document.location: " + document.location) console.log("document.location.href: " + document.location.href) console.log("window.location: " + window.location) console.log("parent.frames.document.location: " + parent.frames.document.location)
When I paste the address to this file in IE's address bar with some parameters, for instance:
The link gets changed to:
When I paste it for the 2nd time the parameters will stay there. If however in the meantime I access some other resources, I will have to paste it 2 more consecutive times for the parameters to remain.
Moreover, after I've place the website in my local Apache and access it through HTTP, the parameters remained:
It works fine for FF and Chrome, for both file and http protocols. Any ideas about this strange behavior in IE?