After Getting the AXIOS api response i need to Redirect to the url in a new tab.
Currently i am achieving this using window.open("url")
inside the api call as like below.
viewimage(image) {
Nova.request().get(`/showimage/`+image,)
.then(response => {
this.urlimage = response.request.responseURL;
window.open(this.urlimage,'_blank');
});
},
But i like to confirm whether its right process to use window.open("url") in axios in production environment because i am facing pop-up blocked in all browsers.
If any other alternate way to achieve this ? Please guide me from your side.
Thanks,