Google Plus API 共享 URL 功能可从 URL 中删除哈希片段

问题描述 投票:0回答:1

我正在尝试通过 Google Plus API 分享以下网址

http://www.w3.org/TR/WD-html40-970708/htmlweb.html#h-4.1.1

我使用以下网址来分享:

https://plus.google.com/share?url=http://www.w3.org/TR/WD-html40-970708/htmlweb.html#h-4.1.1

但是片段正在被删除,所以我只能分享以下内容

http://www.w3.org/TR/WD-html40-970708/htmlweb.html

文档没有提及任何有关哈希片段的约束。

以前有人遇到过这个问题吗?

google-plus
1个回答
2
投票

使用%23对#进行编码。

我以为我已经测试过了。

© www.soinside.com 2019 - 2024. All rights reserved.