通过电子邮件点击链接后出现 URL 问题 -- 这是怎么回事? ##

发布于 2024-08-24 06:56:48 字数 434 浏览 8 评论 0原文

我的应用程序正在向用户发送包含以下内容的电子邮件:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

[浮城] 2024-08-31 06:56:48

# 字符在 中无效片段标识符,因此它会自动转义。您应该避免在片段中使用该字符,或者在使用该值之前显式地对该值进行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 explicitly unescape the value before using it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文