Thread Starter
Hal
(@halburgissnet)
More info … it only happens with the last inline option. The one with everything in a dropdown. Meaning the other inline options work as expected.
-
This reply was modified 2 years, 6 months ago by
Hal.
-
This reply was modified 2 years, 6 months ago by
Hal.
Plugin Author
Prisna
(@prisna)
Greetings,
we’ll need you to provide a link in which the issue can be seen. Also, it’s unclear what exactly “clicked a new browser tab” means. Are you clicking a link within the page, selecting a language, or you’re actually opening a new browser tab? Please send a step by step list on how to reproduce the issue.
Know that you can’t right click on a language and expect to “Open link in new tab”.
Anyway, before sending the link or the user/password, if you can, try to test the site with another machine. Perhaps the issue you’re seeing is caused by a browser extension or some other piece of software running in your computer.
You can send the user/pass information via our contact form:
https://www.prisna.net/contact-us/
Regards
Thread Starter
Hal
(@halburgissnet)
The link is as provided. http://staging403.resultsbydesign.com/. I will send login credentials to form.
Steps to reproduce:
1. Click the Google dropdown where it says “Select Language”
2. Results in: a new browser tap opens with a blank, white screen and the url bar says: “about:blank#blocked” (Chrome). This is consistent. In Firefox it opens a new window instead.
I tried another computer with a different OS, and same result.
More info: If I click directly on the “G” (Google logo), it works as excepted. If I click anything to the right of that, the error as explained above results.
Thanks.
Plugin Author
Prisna
(@prisna)
Thanks for the explanations, but we haven’t received any email with the credentials to login.
Thread Starter
Hal
(@halburgissnet)
I filled out form again just now. Thx
Plugin Author
Prisna
(@prisna)
We received the email, thanks for the access.
The issue is caused by the following file:
http://staging403.resultsbydesign.com/wp-content/themes/methods-machine/library/js/global-1600799877337.min.js
Specifically, this piece of code:
t.getAttribute("target", "_blank") ? window.open(n) : window.location.href = n
When you click on the drop down, you’re clicking on a link element which has a _blank target attribute, so it opens a new tab.
For a quick test, if you block this request (Chrome’s Developer tools > Network > JS > right click on the global-1600799877337.min.js file > Block request URL), it’ll work just fine.
If, for whatever reason you can’t modify that file or don’t know how to, you may try this, go to:
Advanced > General > Javascript callbacks > On after load
Use:
var _run = function() {
setTimeout(function() {
var link = document.getElementsByClassName("goog-te-menu-value");
if (link.length > 0)
link[0].target = "";
else
_run();
}, 100);
};
_run();
Regards