I'm having some troubles while trying to open a local file in google-chrome as it gives me a weird URL in google chrome but prints just fine in the console.
Here is the output I get in the console:
file:///home/user/Questionnaire/initialFr.html?id=902
Here is the address I get in chrome:
file:///home/user/Questionnaire/initialFr.html%3Fid=902
From what I've gathered so far it has to do with chrome escaping the "?" since they have to be interpreted server-side. Is there a way around it?
Thanks in advance
Best Answer
In order to pass parameters to a client-side HTML page, when using local files, the hash
#
should be used instead of question marks?
.So, basically:
file:///home/user/Questionnaire/initialFr.html#id=902