FIX: Support popState on static 404 page
This commit is contained in:
parent
022ca25fea
commit
a967d4dfba
|
@ -41,5 +41,11 @@
|
|||
document.getElementById('google-query').value = 'site:<%= local_domain %> ' + searchValue;
|
||||
return true;
|
||||
}
|
||||
|
||||
window.onpopstate = function(event) {
|
||||
if (!window.hasOwnProperty("Discourse")) { //check if Discourse object exists if not take care of back navigation
|
||||
window.location = document.location;
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<%- end %>
|
||||
|
|
Loading…
Reference in New Issue