Discourse 会对粘贴的 URL 中的片段字符进行编码。
例如:
https://gitpod.io/#https://github.com/eclipse-theia/theia
会变为
https://gitpod.io/#https%3A%2F%2Fgithub.com%2Feclipse-theia%2Ftheia
Discourse 会对粘贴的 URL 中的片段字符进行编码。
例如:
https://gitpod.io/#https://github.com/eclipse-theia/theia
会变为
https://gitpod.io/#https%3A%2F%2Fgithub.com%2Feclipse-theia%2Ftheia
啊,这里有两个链接。我没注意到。所以,是的,只有方框里的链接坏了。
我已将报告的 URL 添加到 #uri_encode 的测试用例中。
注意:在 Discourse 版本 2.4.0.beta9 (c15d702ae6) 中,此问题仍然存在:
在私信中,像 https://gitpod.io/#snapshot/abcd-1234 这样的 URL 仍会被错误地转换为 https://gitpod.io/#snapshot%2Fabcd-1234。
我注意到 Discourse 2.4.0.beta10 现已发布——我可能会尝试升级,看看是否能解决问题。
我刚刚在私信里试了一下,成功了。
此主题在最后一次回复后 2 天自动关闭。不再允许新回复。