-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(router-outlet): support relative router links #17888
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I did some testing and took a brief look over the code. The issue is fixed and the code looks good! Only thing I'd suggest is maybe adding more comments setupProxyObservables
.
I am going to work on some automated tests today/tomorrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only comment (more of code style) is to not format with prettier. But everything else looks good.
Merged! Thanks @daem0ndev for all your work on this and doing the investigation. |
This will be in the next release of Ionic. I am not certain of the version number yet. |
Great! Some minor breaking changes I've got as I just tested it, is that if you were using something like the example below, you will get
This will have to be translated to this
|
I wouldn't consider this a breaking change actually, as the example above is really an anti-pattern/not-recommended. We can make a note, but it should have been avoided to begin with. |
@mhartington sure! Just a note will go a long way. Thank you for the fix @daem0ndev! |
@rgolea @mhartington I created this PR to resolve the breaking change. I do agree its breaking since in a vanilla angular app, you can bind to the observables prior to ngOnInit. #17914 |
Closes ionic-team#17888, closes ionic-team#16534, closes ionic-team#16736, closes ionic-team#16954
Short description of what this resolves:
This PR resolves an issue where relative router links break after a forward and back navigation to a component that has already been created in the ion router outlet stack.
Changes proposed in this pull request:
Ionic Version:
4.x
Fixes: #16534, #16736, #16954