Home > front end >  Vue router picking up window.open on production only
Vue router picking up window.open on production only

Time:10-02

I'm trying to open a different tab for users with window.open

   window.open(
     'https:/example.com/' urlParameters,
     '_blank'
   );

This works perfectly on development (localhost).

When running a build on production it looks like the vue router is interfering.. the browser opens a new tab to:

https://siteurlofvueproject.nl/example.com/?urlparameters

Is there a way to bypass the vue router for window.open?

CodePudding user response:

Did you try with simple link:

<a :href="'https:/example.com/'   urlParameters" target="_blank">outside link</a>
  • Related