Fork me on GitHub
#reitit
<
2022-02-05
>
worlds-endless00:02:57

How can I turn reitit-frontend off for certain links? I want them to have an href, but I want reitit NOT to touch things

worlds-endless00:02:29

I can't seem to get preventDefault or preventPropogation to do it

worlds-endless00:02:38

usecase: this is for opening modals

athomasoriginal00:02:24

Curious: why use a link (a tag) for this? Note: im coming from an accessibility/semantic perspective.

👍 1
worlds-endless20:02:36

@U6GNVEWQGa tag is for browser semantics. It plays correctly with screen readers, shows the target URL (allowing regular browser interactions like "copy link"), and allows for a graceful fall-back in the case of limited JS support.

worlds-endless20:02:11

@UTFAPNRPT thanks! I can work with that! Looks like it is a control handled from the router rather than from the link itself, but it a good starting point.

Marius13:02:17

Hey @U0D6ZHHGS While trying to solve some other problem I just stumbled across your issue https://github.com/metosin/reitit/issues/525 and copied above answer into it, in case someone else is having the same problem 🙂 I hope you don’t mind.