You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use configured routing (the app has @routes decorator) and navigate using normal links, when I use the browser's back button, I receive an exception from the Router.
🤔 Expected Behavior
The router should correctly navigate back or forward to the given URL.
😯 Current Behavior
The page stays and an exception is logged.
Uncaught (in promise) TypeError: t.instruction.replace is not a function
processNavigation index.js:3696
handleNavigatorNavigateEvent index.js:3658
publish index.js:1596
notifySubscribers index.js:2567
navigate index.js:2491
handleNavigatorStateChangeEvent index.js:3668
publish index.js:1596
notifySubscribers index.js:3274
handlePopStateEvent index.js:3268
execute index.js:3060
dequeue index.js:3085
enqueue index.js:3117
handlePopStateEvent index.js:3267
handleEvent index.js:3259
🐛 Bug Report
When I use configured routing (the app has @routes decorator) and navigate using normal links, when I use the browser's back button, I receive an exception from the Router.
🤔 Expected Behavior
The router should correctly navigate back or forward to the given URL.
😯 Current Behavior
The page stays and an exception is logged.
A bit nicer link to the relevant line:
aurelia-direct-router/packages/router/src/router.ts
Line 441 in 7e5854f
💁 Possible Solution
I don't think the code really needs to set the
navigation.path
, seems to work without it.🔦 Context
I am trying to create a single page admin interface and navigate between pages.
💻 Code Sample
https://github.com/zenorbi/aurelia-direct-router-history-bug
🌍 Your Environment
The text was updated successfully, but these errors were encountered: