0

我正在使用 Iron-router,一切正常。在应用程序中更改 url 非常好,但是如果我直接在浏览器的导航工具栏中输入 url,它会提供一个额外的字符串。

例如/home变成/home#.UwPUPc6AnwX

Router.map( function () {
this.route('home', {
    data: function() {
        Session.set('cmsPage', 0);
    }
});
this.route('home2', {
    path: '/',
    template: 'home',
    data: function() {
        Session.set('cmsPage', 0);
    }
});
});

有什么想法吗?

4

1 回答 1

0

我找到了生成奇怪 URL 的部分。它是放置在头部的“Addthis”库。

    <!-- messes up the URL -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-52e579bc6a1e3f4c"></script>
于 2014-02-19T20:28:28.017 回答