Akina for Typecho 主题模板分享按钮404修复

2020-05-18T01:00:00

404原因

Akina for Typecho 主题模板默认分享按钮生成的URL会多带一个"/"导致访问404.

简单修复

找到模板目录下的post.php文件下的这段代码,将/&title改为&title保存,之后分享的内容就可以正常访问了.

    <ul class="sharehidden">
        <li><a href="http://qr.liantu.com/api.php?text=<?php $this->permalink(); ?>" onclick="window.open(this.href, 'renren-share', 'width=490,height=700');return false;" class="s-weixin"><img src="<?php echo theurl; ?>images/wechat.png"/></a></li>
       <li><a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=<?php $this->permalink(); ?>/&title=<?php $this->title() ?>" onclick="window.open(this.href, 'weibo-share', 'width=730,height=500');return false;" class="s-qq"><img src="<?php echo theurl; ?>images/qzone.png"/></a></li>
       <li><a href="http://service.weibo.com/share/share.php?url=<?php $this->permalink(); ?>/&title=<?php $this->title() ?>" onclick="window.open(this.href, 'weibo-share', 'width=550,height=235');return false;" class="s-sina"><img src="<?php echo theurl; ?>images/sina.png"/></a></li>
       <li><a href="http://shuo.douban.com/!service/share?<?php $this->permalink(); ?>/&title=<?php $this->title() ?>" onclick="window.open(this.href, 'renren-share', 'width=490,height=600');return false;" class="s-douban"><img src="<?php echo theurl; ?>images/douban.png"/></a></li>
    </ul>
当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »