This commit is contained in:
Neil MacDougall 2021-06-15 11:29:38 +01:00
parent f1468f7959
commit 6c5b09d0cb
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,9 @@ export default {
// If the page isn't a sub-path of the base url, redirect to it instead of saying not found.
// For clicking from manager -> explorer -> back, nuxt tries to load /g/clusters and doesn't
// have a route for that.
if (this.statusCode === 404 && !this.$route.path.startsWith(this.$router.options.base) && window._popStateDetected) {
const wasBackNavigation = process.client ? window._popStateDetected : false;
if (this.statusCode === 404 && !this.$route.path.startsWith(this.$router.options.base) && wasBackNavigation) {
window.location.href = this.$route.fullPath;
return;