Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not intercept anchors with rel="external" #238

Merged
merged 2 commits into from
Sep 12, 2021
Merged

Conversation

lukechu10
Copy link
Member

Adding rel="external" to an anchor element (<a>) will prevent the router from intercepting the click and let the browser perform the default navigation behavior.

This is useful when there are other pages that are hosted on the same origin but are not managed by the router.

@lukechu10 lukechu10 added C-enhancement Category: new feature or improvement to existing feature A-router Area: router labels Sep 12, 2021
@lukechu10 lukechu10 merged commit e030ba4 into master Sep 12, 2021
@lukechu10 lukechu10 deleted the router-rel-external branch September 12, 2021 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-router Area: router C-enhancement Category: new feature or improvement to existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant