Unable to open multiple <a target="_blank"> links in separate tabs #991
Answered
by
daun
siluantahir
asked this question in
Help
-
What did you expect? 🧐Each click on an link should open in its own new tab, preserving previously opened tabs. What actually happened? 😵💫Swup’s click handler calls window.open(url, name) with a fixed or derived window name, causing the browser to reuse the same tab name for all target="_blank" links. Swup and plugin versions 📝
What browsers are you seeing the problem on? 🧭No response Relevant log output 🤓URL to minimal reproduction 🔗https://dev.daniel-scheuch.com/ Checked all these? 📚
|
Beta Was this translation helpful? Give feedback.
Answered by
daun
Apr 28, 2025
Replies: 1 comment 2 replies
-
|
@siluantahir The correct target should be |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
siluantahir
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@siluantahir The correct target should be
_blank. On the site you've linked, it'sblankwithout a leading underscore, in which case it behaves like browsers normally would by re-using the tab name for every link.