Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.8k
ref #1803: fix cross-origin links in history router mode#1967
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…sspelled "crossorgin" link helper, and instead detect cross origin links and don't handle them as internal
The latest updates on your projects. Learn more aboutVercel for Git ↗︎
|
This pull request is automatically built and testable inCodeSandbox. To see build info of the built libraries, clickhere or the icon next to each commit SHA. Latest deployment of this branch, based on commit292e788:
|
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.
LGTM !
Uh oh!
There was an error while loading.Please reload this page.
the crossOriginLinks option is no longer needed, remove misspelled "crossorgin" link helper, and instead detect cross origin links and don't handle them as internal
Summary
External links are now navigable by default when
routerModeishistory, regardless of theexternalLinksTargetvalue.The
crossOriginLinksoption was added as a way to force external links to not be handled as internal.Instead, that feature has been removed, and now we use
isExternalto check for external links, and avoid handling them as internal.The value of an
<a>tag'stargetis no longer used as our external link check.What kind of change does this PR introduce?
Bugfix
Docs
For any code change,
Does this PR introduce a breaking change? (check one)
The
crossOriginLinksoption is now ignored. I don't think this is breaking. I think people want external links to work properly, so at worst some people will have listed all their links in that array, but now they don't have to.Thinking of tests to add...
Related issue, if any:
fixes#1803
Tested in the following browsers: