我使用Google+在我的网页上分享一些链接,当我尝试共享包含参数的网址时出现问题.例:
http://google.com?n=somethink&link=p/1393007&i=images/icons/gplus-16.png
Run Code Online (Sandbox Code Playgroud)
当您将此URL放入此页面的字段时:
https://developers.google.com/+/plugins/share/
Run Code Online (Sandbox Code Playgroud)
...并单击share按钮,您无法看到有关页面的信息,如姓名,图片和说明.但是当您在"png"之前删除点时,Google会显示有关该页面的数据.
当您'在URL中的任何位置编写符号时,会发生同样的情况.我在Google帮助页面中找不到有关此错误的任何信息.当我使用这样的URL时它可以工作:
http://google.com?n='&link=p/1393007&i=images/icons/gplus-16.png
Run Code Online (Sandbox Code Playgroud)
...但它不是很优雅的解决方案.
如何编写干净的URL?