diff options
Diffstat (limited to 'src/pages.js')
| -rw-r--r-- | src/pages.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pages.js b/src/pages.js index 7e0bdbc..3a02454 100644 --- a/src/pages.js +++ b/src/pages.js @@ -16,6 +16,11 @@ export default class Page { Page.currentPage = page } + static softRedirect(path) { + window.history.pushState({}, "", path) + Page.pathnameCallback() + } + constructor(pageContainer, endpoint, f_initialize) { Page.pages[endpoint] = this |
