AddToAny by default opens a new window when a service is selected. This is great.

For me, the original window, containing my Drupal site page and the AddToAny button, ALSO opens/switches to the service selected.

So I end up with 2 windows with the service selected and my original site page is gone.

Please help.

Comments

medrupalfan’s picture

To try and debug this, I added a target="_blank" attribute to an anchor link in my site and my browser behaved correctly: A new window opened with the linked page and my original window stayed the same, with the original page.

So I would say that my browser is responding correctly to a link that opens a new window .

I am not a programmer or expert in any way, but this leads me to believe it is something in the module?

Any further help would be much appreciated.....

medrupalfan’s picture

Status: Active » Closed (works as designed)

Thanks to the help of another Drupal user, the problem was identified as being caused by the Google Analytics module.

See http://drupal.org/node/1075294#comment-4189202

and http://drupal.org/node/1057914

JGO’s picture

Hi is that true? I am using the latest GA dev module and also experiencing the problem :(

JGO’s picture

Version: 6.x-3.3 » 7.x-3.1
Status: Closed (works as designed) » Active
drakythe’s picture

JGO,

I just tested this and was unable to reproduce. However GA was not installed on my test site. GA might be the problem though I was under the impression that that particularly bug had been squashed. You might try adding a target="_blank" to a link on your site and making sure that works. If it does not work, just any sort of htmlpurifier settings you might have. I had a site once that refused to open links in a new window because something kept stripping out the _blank tags.

micropat’s picture

Status: Active » Closed (works as designed)

As pointed out in #1075934-2: Original and new window both open with the service - It's an issue with another misbehaving module, Google Analytics:

#1057914: Custom outbound link tracking with outdated link targets or javascript is broken

Seems that the workaround is to configure the G.A. module to not track outbound links.