mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-21 14:07:42 +01:00
fix: #10675, don't ajaxify to /assets/ urls
This commit is contained in:
@@ -545,7 +545,7 @@ $(document).ready(function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 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/', '/api/'].some(function (prefix) {
|
||||||
return String(_self.pathname).startsWith(config.relative_path + prefix);
|
return String(_self.pathname).startsWith(config.relative_path + prefix);
|
||||||
})) {
|
})) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user