mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 15:35:47 +01:00
actually fixing #2849
This commit is contained in:
@@ -23,6 +23,11 @@ $(document).ready(function() {
|
|||||||
ajaxify.currentPage = null;
|
ajaxify.currentPage = null;
|
||||||
|
|
||||||
ajaxify.go = function (url, callback, quiet) {
|
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('');
|
app.enterRoom('');
|
||||||
|
|
||||||
$(window).off('scroll');
|
$(window).off('scroll');
|
||||||
|
|||||||
Reference in New Issue
Block a user