Google Plus API分享网址功能会从网址中删除散列片段 [英] Google Plus API Share URL functionality removes hash fragments from URLs

查看:148
本文介绍了Google Plus API分享网址功能会从网址中删除散列片段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆