Ran into a problem today. An employee was testing the site; going through a new feature. Multiple links on a page linking to PDFs - their click get's tracked on our backend and when the call comes back, does a window.open(data.link, '_blank');
Come to find out - Safari has popups blocked by default (as most browsers do now a days) and instead of notifying the user that a new tab wants to open like Chrome or Firefox, it just strait up blocks it.
1 option is to let the href load the pdf via <a href> and do an ng-click to trigger the tracking code.
I prefer to open resources, links to other sites in a new tab / window. I hate it when stuff takes over what I'm looking at.
But option 2 is obviously, go back to just using AJS / Javascript, don't open a new tab / window and just load into the current page.
What do you prefer?
Manish joshi
KEEP PUSHING HARD ! ** Have Faith in yourself**
As you are saying you need to track the click , So as per my thoughts
And we have several jquery and javascript plugin available that might replace the popup window.open such as bootstrap modal which cant be blocked , or jquery's modal. or jqxwidget Window, these might also come handy