[4.0.0-beta.7] Relative routing does not work after returning to same page
See original GitHub issueWhen I use relative routing to go from page A to page B like so:
openPageB(id) {
this.router.navigate(['b', id], { relativeTo: this.route });
}
and then go back to page A (via the browser back button or an ion-back-button
), calling openPageB
again does nothing. When I use absolute routes everything works normally.
I’ve created a repository to demonstrate the issue here: https://github.com/doender/routingError
Issue Analytics
- State:
- Created 5 years ago
- Reactions:10
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Uncaught (in promise): Error: Cannot find module 'app/ ...
I have a somewhat similar problem. I want to import a module dynamically, but outside of the router context. So it's just import('src/some....
Read more >auto_route 3.2.2 | Flutter Package
AutoRoute is a declarative routing solution, where everything needed for navigation is automatically generated for you.
Read more >State.stateservice - UI-Router
If not provided, returns an array of ALL states. base StateOrName. : When stateOrName is a relative state reference (such as .bar.baz ),...
Read more >Framework7 Release Notes
calendar: don't close sheet calendar on picker popover click (f562972) ... that receives (f7, router) (app and router instances) and should return boolean....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@biesbjerg yes that is the post (see below for a good solution)
@mhartington really sad. I suppose this decision has been taken since it isn’t a problem easy to tackle since the bug has been tracked down in angular.
There is this other issue I opened to collect all the others and tivomaker gave a wonderful solution https://github.com/ionic-team/ionic/issues/15959 have a look If not supported, at least let’s add in a recipe section, or wherever you want, that code. And some support should be given to the users in order to give them a solution because as it is, it’s really problematic… it’s more a bug than a missing feature
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.