Conversation
219e23e to
6056d4d
Compare
|
You need to deprecate first and then remove in v8 |
6056d4d to
3855471
Compare
|
@alfaproject Good point. Done. Ready for approval now. |
3855471 to
6a99f81
Compare
|
@jasonaden This PR did miss the 7.0 release. Can we make By the way, the integrations tests in this PR are now included in a752971. |
|
What's the plan for this? In my opinion:
|
|
Yes please. 👍 |
|
You can preview 219e23e at https://pr25609-219e23e.ngbuilds.io/. |
atscott
left a comment
There was a problem hiding this comment.
We're aiming to merge this change for v11 along with the migration
here: #38698.
Could you also update your commit message in the change to add a little more detail and also have a BREAKING CHANGE footer note to describe how this might break applications that rely on the default being 'legacy'?
8113d83 to
e67529b
Compare
|
Note: rebased PR and removed the note about deprecations, which can be a different PR. We should decide on a plan for how it will get removed rather than just deprecating it with no plan. |
We are changing the default value from 'legacy' to 'corrected' so that new applications are automatically opted-in to the corrected behavior from angular#22394. BREAKING CHANGE: This commit changes the default value of `relativeLinkResolution` from `'legacy'` to `'default'`. If your application previously used the default by not specifying a value in the `ExtraOptions` and uses relative links when navigating from children of empty path routes, you will need to update your `RouterModule` to specifically specify `'legacy'` for `relativeLinkResolution`. See https://angular.io/api/router/ExtraOptions#relativeLinkResolution for more details.
e67529b to
e1d7e88
Compare
|
You can preview e1d7e88 at https://pr25609-e1d7e88.ngbuilds.io/. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
To apply the fix of #22394 in Angular 6.x, you have to set
relativeLinkResolutiontocorrected.What is the new behavior?
This PR makes this the default for Angular 7.
Does this PR introduce a breaking change?
Routing behaviour will be affected for empty path routes.
Other information
See https://github.com/angular/angular/pull/22394/files.
Credits to @adriensamson.