Open benabraham opened 4 years ago
I suspect this behavior (always open links in a new tab, except links in a book frame) is the default/expected. See "Does clicking on a link always require a new tab?" #110 .
It should open exactly the same links inside the right pane: see https://github.com/hackmdio/codimd/issues/658
If not, it would be weird that it works in every other browser except Chrome. And in Chrome it seems to work randomly from time to time…
You are correct, no no tabs on Firefox. My theory at the time is that Firefox ignores _target directives, but I don't know...
No, it works. Check yourself. https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/target
To me it seems that the JavaScript that changes that behavior has a bug in Chrome.
Is this a hackmd.io issue?
What's the problem
Current behaviour
Sources
Expected behaviour
I expect note to open in the same tab and in the right pane of the book: the same it works in both the latest Firefox and Edge 18 because links have exactly the same URL as in the „book“.
Environment
I use HackMD on Desktop
This behavior is also visible in:
and mobile
Additional context
I tested it using a clean user profile (everything is default, no extensions except Google's default for offline Docs use).