PurpleKingdomGames / tyrian

Elm-inspired Scala UI library.
https://tyrian.indigoengine.io/
MIT License
346 stars 26 forks source link

Allow default behaviour on links if the target attribute is set #269

Open davesmith00000 opened 3 months ago

davesmith00000 commented 3 months ago

At the moment, to follow an external link you need to organise the router to do so.

In the case where someone has set target="_blank", the intention of it opening in a new tab/window is pretty clear, and was decided by the user.

We could try modifying the intercept check such that if there is an explicit target attribute present, then we allow the default behaviour.