Repository navigation
fix(aio): do not nav to an image url - #16612
Conversation
388191a to
21d2f92
Compare
21d2f92 to
b43f4de
Compare
|
Subsequent to @petebacondarwin approval, after discussion, the rule changed from "ignore any extension except |
There was a problem hiding this comment.
The instanceof HTMLAnchorElement part is redundant. Rings any bells? 😛
There was a problem hiding this comment.
Not this time @gkalpak. Notice that I moved from target as HTMLAnchorElement in next line to here, if (target instanceof HTMLAnchorElement). TS insists on one or the other (you don't need both). Because I was messing with target inside the if for a while, moving it up was helpful. Now it doesn't matter but I left it there for posterity.
There was a problem hiding this comment.
with`go()` --> with `go()` (missing whitespace)
|
@wardbell the CI is red. can you have a look? |
|
@wardbell linting issues |
b43f4de to
ed3b4bb
Compare
|
Yup. Fixed and re-running CI |
closes angular#16608 Formerly, tried to navigate when user clicked an anchor with an image url (to view image in a new tab) resulting in 404. Now ignores href URL with any extension and lets browser handle it.
ed3b4bb to
94ed9ff
Compare
|
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. |
closes #16608
Formerly, tried to navigate when user clicked an anchor with an image url (to view image in a new tab) resulting in 404.
Now ignores href URL with any extension and lets browser handle it.
Affects
LocationServicewhose tests have also been refactored for clarity.Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")