Try fixing router
This commit is contained in:
parent
0e7b90cd0e
commit
7810af56ef
3 changed files with 18 additions and 22 deletions
3
package-lock.json
generated
3
package-lock.json
generated
|
@ -3393,7 +3393,8 @@
|
|||
"version": "4.6.0",
|
||||
"resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
|
||||
"integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=",
|
||||
"dev": true
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"coa": {
|
||||
"version": "2.0.2",
|
||||
|
|
|
@ -1,25 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="pl">
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<meta http-equiv="refresh" content="0;URL='./'">
|
||||
<link rel="icon" href="./favicon.ico">
|
||||
<title>Przekierowywanie | Wulkanowy</title>
|
||||
<script>
|
||||
// ====================================================================================================================
|
||||
// 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;
|
||||
</script>
|
||||
<meta http-equiv="refresh" content="0;URL='/'">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="text">Przekierowywanie</div>
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
(function(){
|
||||
var redirect = sessionStorage.redirect;
|
||||
delete sessionStorage.redirect;
|
||||
if (redirect && redirect != location.href) {
|
||||
history.replaceState(null, null, redirect);
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
</html>
|
||||
|
|
|
@ -14,4 +14,11 @@
|
|||
<div id="app"></div>
|
||||
<!-- built files will be auto injected -->
|
||||
</body>
|
||||
<script>
|
||||
const redirect = sessionStorage.redirect;
|
||||
delete sessionStorage.redirect;
|
||||
if (redirect && redirect != location.href) {
|
||||
history.replaceState(null, null, redirect);
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue