daliborgogic/nuxt-interpolation

Default behaviour is lost when using ctrl/cmd-click to open page in a new tab

jonathanmeurrens opened this issue · 1 comments

First of all, thank you for the helpful plugin. I'm opening this ticket for a bug we encountered during testing:
Relative links that get transformed with v-interpolation lose their default behaviour when using ctrl/cmd-click to open the page in a new tab. That's an expected user-pattern that's getting lost when using the plugin. It would be nice to keep that default behaviour. Adding a check for event.metaKey when the click occurred could be a solution to fix this issue? (push & preventDefault would not be triggered when cmd or ctrl is used while clicking the link)