-
Notifications
You must be signed in to change notification settings - Fork 155
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
Seed shouldn't intercept links with target
attribute
#497
Comments
Hey, why should we ignore it ? Here is the quote from the doc :
|
When you write P.S. There are also other exceptions that should be handled - e.g. when the user holds |
But why can't it open a new tab? |
Seed intercepts all relative links by default to prevent the app reloading. The intercepted link click doesn't propagate to the browser's handler so it doesn't process the link at all in such cases. |
Ah, okay. Now I understand. I wonder what should happen with the other But maybe that is just fine? I am not sure what a "browsing context" could be other than a browser page or an iframe. So I guess to handle |
I would just handle the most common cases - it means
There aren't any special concepts / apis for "browsing contexts". |
Makes sense. I guess anything the other targets do can be emulated using other features. |
See
seed/src/browser/service/routing.rs
Line 101 in 38f6c20
Should we ignore all links with set
target
or only with sometarget
values (e.g._self
)?MDN docs: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a
Workaround:
The text was updated successfully, but these errors were encountered: