开发者

URL issues, after a link is clicked on via email -- What's the deal? ##

开发者 https://www.devze.com 2022-12-22 18:59 出处:网络
My app is sending users email with the following: https://blah.chacha.com/feedback/##comment-reply-169

My app is sending users email with the following:

https://blah.chacha.com/feedback/##comment-reply-169

But for some reason, sometimes whe开发者_开发技巧n the URL is loaded in some of the user's browsers the ## are being converted to something like:

https://blah.chacha.com/feedback/#%23comment-reply-169

Any ideas what's going on here and why?


The # character isn’t valid in a fragment identifier, so it’s being escaped automatically. You should either avoid using that character inside a fragment, or explicitly unescape the value before using it.

0

精彩评论

暂无评论...
验证码 换一张
取 消