Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Open this link in a new tab" not working #171

Open
ZohaibHaider7 opened this issue May 23, 2023 · 4 comments
Open

"Open this link in a new tab" not working #171

ZohaibHaider7 opened this issue May 23, 2023 · 4 comments

Comments

@ZohaibHaider7
Copy link

Hi Mark!
I am using this plugin (latest version) in WordPress version 4.9.8. The issue is that when I give a custom URL and check "Open this link in a new tab", it appends "#new_tab" at the end of the URL, but the link is not opening in a new tab. It opens in the same tab with the URL like this: "http://example-site.com#new_tab".

P.S. I am using a custom theme.
Screenshot_8
Screenshot_9
Screenshot_10

@jazdauskas
Copy link

Yes, I'm having the exact issue. I only had this issue after the latest update of WordPress. I'm running the 6.2.2 version.

@scacchetti
Copy link

Same issue, WP 6.2.2

@MadtownLems
Copy link

I ran into this problem, and in my debugging, found that the new-tab.js file was being blocked by my client. Disabling my ad blocker for the site domain seemed to resolve the issue. I'm curious if this fixes it for y'all, as well.

Of course, what would be great is figuring out WHY my adblocker was blocking it and prevent it in the future.

@hooker99
Copy link

hooker99 commented Jul 19, 2023

I ran into this problem, and in my debugging, found that the new-tab.js file was being blocked by my client. Disabling my ad blocker for the site domain seemed to resolve the issue. I'm curious if this fixes it for y'all, as well.

Of course, what would be great is figuring out WHY my adblocker was blocking it and prevent it in the future.

AdBlockers can block JavaScript (spam etc.). I don't know if it's possible, but plugin author should use HTML: < a target="_blank" href="url_here_or_link">Click me< /a >

You can do a little test: open your blog/website and press the F12 (open console) on your blog and add target="_blank" to the link, then click this link in the browser. AdBlock won't block it.

PS. At the moment, you can use a separate plugin and enter links to be opened in a new window, You can put just link or regex: https://wordpress.org/plugins/open-external-links-in-a-new-window/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants