通过电子邮件点击链接后出现 URL 问题 -- 这是怎么回事? ##
我的应用程序正在向用户发送包含以下内容的电子邮件:
https://blah.chacha。 com/feedback/##comment-reply-169
但由于某种原因,有时当 URL 加载到某些用户的浏览器中时,## 会被转换为类似以下内容的内容:
https://blah.chacha.com/feedback/#%23comment-reply-169
任何想法是什么这里发生了什么,为什么?
My app is sending users email with the following:
https://blah.chacha.com/feedback/##comment-reply-169
But for some reason, sometimes when 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
#
字符在 中无效片段标识符,因此它会自动转义。您应该避免在片段中使用该字符,或者在使用该值之前显式地对该值进行unescape
。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 explicitlyunescape
the value before using it.