question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[4.0.0-beta.7] Relative routing does not work after returning to same page

See original GitHub issue

When 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:closed
  • Created 5 years ago
  • Reactions:10
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
giacomocerquonecommented, Dec 21, 2018

@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

0reactions
ionitron-bot[bot]commented, Jan 20, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

vue-router/CHANGELOG.md
The CDN for vue-router.
Read more >
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found