Skip to content
This repository was archived by the owner on Dec 9, 2021. It is now read-only.

Commit e3000d9

Browse files
committed
Router class where on load it would not navigate to the proper history route.
1 parent 3fe9f71 commit e3000d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/service/Router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@
461461
Router._changeRoute(state.route);
462462
}
463463
else {
464-
var route = '';
464+
var route = location.pathname + location.search + location.hash;
465465
if (Router.useDeepLinking === true) {
466466
window.history.replaceState({ route: route }, null, null);
467467
}

ts/service/Router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ class Router
697697
const state:any = event.state;
698698
Router._changeRoute(state.route);
699699
} else {
700-
const route = '';
700+
const route = location.pathname + location.search + location.hash;
701701

702702
if (Router.useDeepLinking === true) {
703703
window.history.replaceState({ route: route }, null, null);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy