mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
actually fixing #2849
This commit is contained in:
@@ -23,6 +23,11 @@ $(document).ready(function() {
|
||||
ajaxify.currentPage = null;
|
||||
|
||||
ajaxify.go = function (url, callback, quiet) {
|
||||
// If ajaxifying into an admin route from regular site, do a cold load.
|
||||
if (url.indexOf('admin') === 0 && window.location.pathname.indexOf('/admin') !== 0) {
|
||||
return window.open(RELATIVE_PATH + '/' + url, '_blank');
|
||||
}
|
||||
|
||||
app.enterRoom('');
|
||||
|
||||
$(window).off('scroll');
|
||||
|
||||
Reference in New Issue
Block a user