You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
will trigger when an <a> tag has no target set, but will not trigger when target is set to anything except undefined (including the default value of _self)
Using target=_self as a way to indicate to an SPA framework that a given link should be treated normally rather than being intercepted predates SvelteKit. There are a number of frameworks that work this way. It may not have ever been documented in SK's docs - and there may be other official SK-specific ways of doing this - but I don't think we can just remove it. At the very least, removing this should be a breaking change.
Describe the bug
Page transitions (achieved through a simple setup in
+layout.svelte
:will trigger when an
<a>
tag has notarget
set, but will not trigger whentarget
is set to anything except undefined (including the default value of_self
)Reproduction
https://github.com/emmalexandria/transitions-repro
Logs
No response
System Info
Severity
annoyance
Additional Information
In custom link components, this little nit can be worked around by passing
undefined
totarget
instead of a default value of_self
.The text was updated successfully, but these errors were encountered: