mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 16:30:34 +01:00
adding old path to uploads as well, to ajaxify shirt-circuit
This commit is contained in:
@@ -390,7 +390,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 && ['/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);
|
||||||
})) {
|
})) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user