Google+ 与“%20”分享 link 无效

Google+ share link with "%20" not working

<a href="https://plus.google.com/share?url=https://www.utp.edu.my/The%20University/SitePages/Home.aspx" target="_blank" class="share-btn google-plus">
    google share
</a>

无法正确读取 url link:

正如 documentation 所建议的那样,URL 需要进行 url 编码。所以你的 URL 看起来像:https%3A%2F%2Fwww.utp.edu.my%2FThe%2520University%2FSitePages%2FHome.aspx

然后您的 link 将如下所示:

<a href="https://plus.google.com/share?url=https%3A%2F%2Fwww.utp.edu.my%2FThe%2520University%2FSitePages%2FHome.aspx" target="_blank" class="share-btn google-plus">
    google share
</a>