mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: sitemap ajaxify
This commit is contained in:
@@ -391,6 +391,11 @@ $(document).ready(function () {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Default behaviour for sitemap
|
||||||
|
if (internalLink && $(this).attr('href') && String(_self.pathname).startsWith(config.relative_path + '/sitemap') && $(this).attr('href').endsWith('.xml')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Default behaviour for uploads and direct links to API urls
|
// Default behaviour for uploads and direct links to API urls
|
||||||
if (internalLink && ['/uploads', '/assets/uploads/', '/api/'].some(function (prefix) {
|
if (internalLink && ['/uploads', '/assets/uploads/', '/api/'].some(function (prefix) {
|
||||||
return String(_self.pathname).startsWith(config.relative_path + prefix);
|
return String(_self.pathname).startsWith(config.relative_path + prefix);
|
||||||
|
|||||||
Reference in New Issue
Block a user