Skip to content

fix(router): change undefined route snapshot fragment to null#29819

Closed
ArtificialQualia wants to merge 4 commits intoangular:masterfrom
ArtificialQualia:fix-undefined-fragment
Closed

fix(router): change undefined route snapshot fragment to null#29819
ArtificialQualia wants to merge 4 commits intoangular:masterfrom
ArtificialQualia:fix-undefined-fragment

Conversation

@ArtificialQualia
Copy link
Copy Markdown

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: #29391

What is the new behavior?

If fragment is not set, it is always null. Not sometimes null and sometimes undefined.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

When going to a link through the router, the fragment would be undefined.
However on a page refresh, it would become null.
Now the fragment is null in both cases.

PR Close angular#29391
@ArtificialQualia ArtificialQualia requested a review from a team April 10, 2019 20:14
@ArtificialQualia ArtificialQualia requested a review from a team April 10, 2019 20:38
@ngbot ngbot bot added this to the needsTriage milestone Apr 17, 2019
@MatthiasKunnen
Copy link
Copy Markdown
Contributor

Superseded by #37336.

@pullapprove pullapprove bot requested a review from atscott July 8, 2020 22:44
@atscott
Copy link
Copy Markdown
Contributor

atscott commented Jul 9, 2020

Superseded by #37336.

@atscott atscott closed this Jul 9, 2020
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants