fix(router-outlet): support relative router links#17888
fix(router-outlet): support relative router links#17888daem0ndev wants to merge 6 commits intoionic-team:masterfrom daem0ndev:fix-activated-route
Conversation
liamdebeasi
left a comment
There was a problem hiding this comment.
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.
mhartington
left a comment
There was a problem hiding this comment.
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 |
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