Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Javascript Link in Menu opens an unwanted blank tab

Javascript Link in Menu opens an unwanted blank tab

WTL-KT
Visitor
3 0 0

Site: balkenehome.com

 

Our site's main header navigation includes a link ("Write a Review") that is not part of the shopify main menu navigation. It runs a javascript app for a review platform. In the header.liquid file, the code that appears to refer to this menu item is:

 

<li class="main-nav__item">
<a title="" href="javascript&colon;;" onclick="submitGeneric()">Write a Review</a>
</li>

 

We recently updated our URL from the native shopify URL to a dedicated URL. This caused a hiccup in the connection which has been fixed. but we have not changed anything in the code (i.e. the code above used to work correctly and now does not).

 

The issue is that clicking that link is supposed to open an overlay window with a product review form, which it does, but since fixing the connection from the review software, clicking the link ALSO opens a new blank tab "about:blank#blocked" as the active window. How do I stop the blank window from happening?

Reply 1 (1)
WTL-KT
Visitor
3 0 0

I made this change, however, the behavior did not change. Clicking still generates a blank tab.