Try fixing router v3

This commit is contained in:
Dominik Korsa 2019-08-29 21:27:17 +02:00
parent 15121000e8
commit 6c67d7a3db
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@
// This text is simply to make sure the 404.html file is bigger than 512 bytes, else, internet explorer will ignore it.
// Thank you internet explorer for requiring such awesome workarounds in order to work properly
// ====================================================================================================================
sessionStorage.redirect = location.href;
sessionStorage.redirect = location.pathname;
</script>
<meta http-equiv="refresh" content="0;URL='/'">
</head>

View file

@ -34,7 +34,7 @@ new Vue({
if (sessionStorage.redirect) {
const { redirect } = sessionStorage;
delete sessionStorage.redirect;
this.$router.push(redirect);
router.push(redirect);
}
},
}).$mount('#app');