简体   繁体   English

页面完全加载后查询字符串参数消失

[英]Query String Parameters are getting disappeared after page is completely loaded

I am opening a browser using URL and I am manually putting my query parameters along with the url of the webpage.我正在使用 URL 打开浏览器,并手动将查询参数与网页的 url 一起放置。 As soon as my page is loaded completely my query string parameters are getting disappeared and are replaced by LANG=EN-US#一旦我的页面完全加载,我的查询字符串参数就会消失并被替换为LANG=EN-US#

I am opening as below,我打开如下,

http://mywebip/test.aspx?lang=en-us&userid={4BA50DE4-7CF7-E811-9677-00155D4B5214}

After load is completed the url becomes,加载完成后,网址变为,

http://mywebip/test.aspx?lang=en-us#

Why does it disappears after my page load is completed?为什么我的页面加载完成后它消失了? I have even tried on a fresh browser with no History or cookie or cache but still the issue is same.我什至尝试过没有历史记录、cookie 或缓存的新浏览器,但问题仍然存在。

the reasons the above link isn't validating is because they contain non-encoded ampersand ( & ) characters.上述链接未验证的原因是因为它们包含未编码的与号 ( & ) 字符。 Ampersands are often used in URL query strings to demarcate granular chunks of information" &符号通常用于 URL 查询字符串中,以划分信息的粒度块”

try this http://mywebip/test.aspx?lang=en-us&userid={4BA50DE4-7CF7-E811-9677-00155D4B5214}试试这个 http://mywebip/test.aspx?lang=en-us&userid={4BA50DE4-7CF7-E811-9677-00155D4B5214}

visit this link it will help you.访问此链接,它将为您提供帮助。 https://perishablepress.com/how-to-write-valid-url-query-string-parameters/ https://perishablepress.com/how-to-write-valid-url-query-string-parameters/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM