when refreshing because ajax failed, reload the current view, not just index.php

This commit is contained in:
Isaac Connor 2018-08-15 17:21:54 -04:00
parent 2a4508b598
commit 40cd27e68a
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ if ( currentView != 'none' && currentView != 'login' ) {
console.log( "Request Failed: " + err ); console.log( "Request Failed: " + err );
// The idea is that this should only fail due to auth, so reload the page // The idea is that this should only fail due to auth, so reload the page
// which should go to login if it can't stay logged in. // which should go to login if it can't stay logged in.
window.location.href = thisUrl; window.location.href = thisUrl+'?view='+currentView;
}); });
} }