Google Plus API Share URL functionality removes hash fragments from URLs

时光怂恿深爱的人放手 提交于 2019-12-13 04:40:32

问题


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


回答1:


duh

Use %23 to encode #.

I thought I had already tested this.



来源:https://stackoverflow.com/questions/23370773/google-plus-api-share-url-functionality-removes-hash-fragments-from-urls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!