Upon receiving the AXIOS API response, I want to redirect to the URL in a new tab.
Currently, I am accomplishing this by using window.open("url")
within the API call as shown below.
viewimage(image) {
Nova.request().get(`/showimage/`+image,)
.then(response => {
this.urlimage = response.request.responseURL;
window.open(this.urlimage,'_blank');
});
},
However, I am questioning whether it is the correct approach to use window.open("url") in Axios in a production environment due to encountering pop-up blockers in all browsers.
If there is an alternative method to achieve this task, please provide guidance from your end.
Thank you,