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
Which @angular/* package(s) are the source of the bug?
router
Is this a regression?
No
Description
with routerModule as default, a deactivate failure, would still remove the history state causing issues with back button and swipe back on mobile.
as per instructions, i changed to RouterModule.forRoot(AppRoutes, { canceledNavigationResolution: 'computed' })
which results in history being reset on deactivate failure, however the page also refreshes causing form data and state to be reset. my understanding is that default deferred update strategy and sameURLNavigation 'ignore' should have caused the route to not be reloaded, however this is not the case.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
routerModule as default:
Route Page 1 -> Page 2
Route Page 2 -> Page 3
Back & deactivate Failure = history state Page 2
canceledNavigationResolution 'computed':
Route Page 1 -> Page 2
Route Page 2 -> Page 3
Back & deactivate Failure = history state Page 3, but refresh page 3
Please provide the environment you discovered this bug in (run ng version)
my understanding is that default deferred update strategy and sameURLNavigation 'ignore' should have caused the route to not be reloaded, however this is not the case.
not quite in this case because the URL is changing so the route is processed. This now depends on what you’re doing with the RouteReuseStrategy. Can you provide a reproduction?
I am facing simililar issue with my application after using canceledNavigationResolution: 'computed' Flag.
The application has two routes, one route displays a reactive form other route embeds an iframe.
When the user lands on the iframe route and uses the browser back button to navigate back, Instead of navigating the application just reloads on the same page. Basically after that the user is stuck.
Also this issue is not observed while developing on localhost, It is observed when It's hosted behind our testing domain which uses nginx as a load balancer.
Which @angular/* package(s) are the source of the bug?
router
Is this a regression?
No
Description
with routerModule as default, a deactivate failure, would still remove the history state causing issues with back button and swipe back on mobile.
as per instructions, i changed to
RouterModule.forRoot(AppRoutes, { canceledNavigationResolution: 'computed' })
which results in history being reset on deactivate failure, however the page also refreshes causing form data and state to be reset. my understanding is that default deferred update strategy and sameURLNavigation 'ignore' should have caused the route to not be reloaded, however this is not the case.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: