NuxtN
Nuxt6mo ago
8 replies
Mr. Afonso

Popup for external links

Hey so, I was planning on opening a popup when an external link is detected.

I have created a component that computes when the href is an external link or not. If it isn't, it uses a NuxtLink component, all good, but when it is external, I am opening a modal/popup using reka-ui. The problem is that due to this, I can no longer right click the link to open it in a new tab as it is somewhat of a button now.

How would I fix this? Do I need to go the traditional route and redirect to a different page before going out of the website? I didn't want to have to open a new page.
Was this page helpful?