refactor(nuxt): normalize NuxtLink external behavior #25533
Draft
+281
β161
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π Linked issue
#25532
(blocking further work on #25435)
β Type of change
π Description
βΉοΈ Still thinking through this PR.
NuxtLink has some logic issues that we should clean up that would solve several edge cases. We try to define what kind of logic domains we're dealing with and try and handle them more explicitly.
Domains
Internal relative links
Nuxt-based relative links.
RouterLink
(vue-router)"External" relative links
Used to point to non-Nuxt relative links. For example, a
/admin/
path may be hosted by a separate application, we don't want vue-router logic to apply.external
a
tagExternal absolute link
Link to other sites.
a
tagrel
appliedCustom Links
When the
custom
prop is used.navigate()
function (if explicit opt-in is provided) (!)New Dev Warnings
{ path: 'https://example.com' }
)custom
andnavigate()
π Checklist