【问题标题】:How do I share the whole entire link with google+, facebook, and linkedin?如何与 google+、facebook 和 linkedin 共享整个链接?
【发布时间】:2012-01-04 22:28:51
【问题描述】:

我正在尝试使用来自 3 个社交媒体网站、Google+、Facebook 和 Linkedin 的“分享”链接。链接有效,但它们共享的 URL 错误。

例如,如果我的网址是:

http://webdomain.com/index.html#/test/testpage12312.html

它将分享这个:

http://webdomain.com/index.html#

有人知道为什么它会忽略哈希后的所有内容吗?谢谢。

这是我正在使用的 URL:

http://www.facebook.com/share.php?u=[URL]
http://www.linkedin.com/cws/share?url=[URL]
https://plusone.google.com/_/+1/confirm?hl=en&url=http%3A%2F%2F%20[URL]

【问题讨论】:

    标签: facebook linkedin sharing google-plus


    【解决方案1】:

    您应该对 URL 进行编码,以便 # 字符为 %23。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-10-03
      • 2011-10-18
      • 2013-01-20
      • 2021-03-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-29
      相关资源
      最近更新 更多