mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
closes #2864
This commit is contained in:
@@ -78,6 +78,10 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
$(window).trigger('action:ajaxify.start', {url: url});
|
$(window).trigger('action:ajaxify.start', {url: url});
|
||||||
|
|
||||||
|
if (!window.location.pathname.match(/\/(403|404)$/g)) {
|
||||||
|
app.previousUrl = window.location.href;
|
||||||
|
}
|
||||||
|
|
||||||
ajaxify.currentPage = url;
|
ajaxify.currentPage = url;
|
||||||
|
|
||||||
if (window.history && window.history.pushState) {
|
if (window.history && window.history.pushState) {
|
||||||
@@ -243,10 +247,6 @@ $(document).ready(function() {
|
|||||||
return e.preventDefault();
|
return e.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!window.location.pathname.match(/\/(403|404)$/g)) {
|
|
||||||
app.previousUrl = window.location.href;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!e.ctrlKey && !e.shiftKey && !e.metaKey && e.which === 1) {
|
if (!e.ctrlKey && !e.shiftKey && !e.metaKey && e.which === 1) {
|
||||||
if (this.host === '' || this.host === window.location.host) {
|
if (this.host === '' || this.host === window.location.host) {
|
||||||
// Internal link
|
// Internal link
|
||||||
|
|||||||
Reference in New Issue
Block a user