xml 站点地图错误 class laravel 中的 PageContext
xml sitemap Error class PageContext in laravel
我正在为我的站点制作一些站点地图,它工作正常,但现在我的站点地图出现了一些问题
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://www.rosena.ir/sitemap.html</loc>
<lastmod>2020-06-16</lastmod>
</sitemap>
<sitemap>
<loc>https://www.rosena.ir/sitemap_filter.xml?do=pro</loc>
<lastmod>2020-06-16</lastmod>
</sitemap>
<sitemap>
<loc>https://www.rosena.ir/sitemap_filter.xml?do=cat</loc>
<lastmod>2020-06-16</lastmod>
</sitemap>
<sitemap>
<loc>https://www.rosena.ir/sitemap_filter.xml?do=brand</loc>
<lastmod>2020-06-16</lastmod>
</sitemap>
<sitemap>
<loc>https://www.rosena.ir/sitemap_filter.xml?do=en</loc>
<lastmod>2020-06-16</lastmod>
</sitemap>
<sitemap>
<loc>https://www.rosena.ir/sitemap_filter.xml?do=ptag</loc>
<lastmod>2020-06-16</lastmod>
</sitemap>
</sitemapindex>
我收到错误:
new (class PageContext { constructor(clientKey) { this.client = window[Symbol.for(clientKey)]; this.bindEvents(); } bindEvents() { const self = this; history.pushState = (f => function pushState() { const ret = f.apply(this, arguments); self.onUrlChange(); return ret; })(history.pushState); let firstReplaceEvent = true; history.replaceState = (f => function replaceState(params) { var ret = f.apply(this, arguments); if (!firstReplaceEvent) { self.onUrlChange(); } firstReplaceEvent = false; return ret; })(history.replaceState); window.addEventListener('hashchange', function () { self.onUrlChange(); }); } onUrlChange() { this.client.emitToBg('URLS_SAFE_CHECK__CONTENT_URL_REWRITED'); } })('MARIO_POST_CLIENT_eppiocemhmnlbhjplcgkofciiegomcon')
我有同样的问题,这是因为 browser extension
(在我的例子中是 Urban VPN)。
禁用扩展后问题消失了。
我正在为我的站点制作一些站点地图,它工作正常,但现在我的站点地图出现了一些问题
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://www.rosena.ir/sitemap.html</loc>
<lastmod>2020-06-16</lastmod>
</sitemap>
<sitemap>
<loc>https://www.rosena.ir/sitemap_filter.xml?do=pro</loc>
<lastmod>2020-06-16</lastmod>
</sitemap>
<sitemap>
<loc>https://www.rosena.ir/sitemap_filter.xml?do=cat</loc>
<lastmod>2020-06-16</lastmod>
</sitemap>
<sitemap>
<loc>https://www.rosena.ir/sitemap_filter.xml?do=brand</loc>
<lastmod>2020-06-16</lastmod>
</sitemap>
<sitemap>
<loc>https://www.rosena.ir/sitemap_filter.xml?do=en</loc>
<lastmod>2020-06-16</lastmod>
</sitemap>
<sitemap>
<loc>https://www.rosena.ir/sitemap_filter.xml?do=ptag</loc>
<lastmod>2020-06-16</lastmod>
</sitemap>
</sitemapindex>
我收到错误:
new (class PageContext { constructor(clientKey) { this.client = window[Symbol.for(clientKey)]; this.bindEvents(); } bindEvents() { const self = this; history.pushState = (f => function pushState() { const ret = f.apply(this, arguments); self.onUrlChange(); return ret; })(history.pushState); let firstReplaceEvent = true; history.replaceState = (f => function replaceState(params) { var ret = f.apply(this, arguments); if (!firstReplaceEvent) { self.onUrlChange(); } firstReplaceEvent = false; return ret; })(history.replaceState); window.addEventListener('hashchange', function () { self.onUrlChange(); }); } onUrlChange() { this.client.emitToBg('URLS_SAFE_CHECK__CONTENT_URL_REWRITED'); } })('MARIO_POST_CLIENT_eppiocemhmnlbhjplcgkofciiegomcon')
我有同样的问题,这是因为 browser extension
(在我的例子中是 Urban VPN)。
禁用扩展后问题消失了。