Skip to content
Advertisement

output and actual url is different shown in navigation compare to console

currently I’m facing an issue where the URL that are outputted in the console is different from the actual URL display in the nav bar. I look at the value that I had regex, it was correct but when put into IE, it is different. The URL in the nav bar would be only a=test instead of a=test&c=import&f=&uid=user1 which is what is shown in the console. May I know how to solve this? Thanks.

Here is the codes for it.

JavaScript

Advertisement

Answer

& has a special meaning to the command line (concat commands, see here: How do I run two commands in one line in Windows CMD?).

You need to escape the url or maybe the entire command. If I remember correctly you need to put double quotes around it: "...iexplore -k "" + newUrl + """

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement