Google Plus API分享网址功能会从网址中删除散列片段 [英] Google Plus API Share URL functionality removes hash fragments from URLs
问题描述
我试图通过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
然而,片段正在被删除,所以我只能分享以下内容: b
$ b
http://www.w3.org/TR/WD-html40-970708/htmlweb.html
文档没有提及任何关于散列碎片的限制。
有没有人以前遇到过这个问题?
谢谢
duh
使用%23编码#。
已经测试过了。
I am trying to share the following URL via the Google Plus API
http://www.w3.org/TR/WD-html40-970708/htmlweb.html#h-4.1.1
I am using the following URL to share that:
https://plus.google.com/share?url=http://www.w3.org/TR/WD-html40-970708/htmlweb.html#h-4.1.1
However, the fragment is being removed, so I am only able to share the following
http://www.w3.org/TR/WD-html40-970708/htmlweb.html
The documentation doesn't mention anything regarding constraints about hash fragments.
Has anyone already faced this issue before?
Thanks
duh
Use %23 to encode #.
I thought I had already tested this.
这篇关于Google Plus API分享网址功能会从网址中删除散列片段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!