diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index ae44c1eae5..41304d1788 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -391,6 +391,11 @@ $(document).ready(function () { 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 if (internalLink && ['/uploads', '/assets/uploads/', '/api/'].some(function (prefix) { return String(_self.pathname).startsWith(config.relative_path + prefix);