vaderjs 1.3.3-alpha-135 → 1.3.3-alpha-137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/runtime/router.js +2 -1
package/package.json
CHANGED
package/runtime/router.js
CHANGED
|
@@ -203,7 +203,8 @@ class VaderRouter{
|
|
|
203
203
|
if (!route) {
|
|
204
204
|
route = window.routes.find((errorRoute) => {
|
|
205
205
|
if (errorRoute.url.includes('/404') && !this.error && !window.devMode) {
|
|
206
|
-
|
|
206
|
+
window.history.pushState({}, '', '/404');
|
|
207
|
+
window.dispatchEvent(new Event('popstate'));
|
|
207
208
|
this.error = true;
|
|
208
209
|
return false
|
|
209
210
|
|