Change links back to opening in same tab

Topic summary

A Shopify store owner using the Studio theme encountered an issue where all links, including product links, were opening in new tabs. This was causing a popup to trigger on every product page visit, creating a poor user experience.

Root Cause:

  • In 2022, code was modified to make external/social media links open in new tabs
  • The implementation inadvertently affected all links site-wide

Solution Found:
The issue was resolved by editing the card-product.liquid file:

  • Change target="_blank" to target="_self"
  • This forces product links to open in the same tab

Status: Resolved. The store owner successfully fixed the problem independently.

Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

Hello hello! Once upon a time in 2022, I edited the code on my Shopify site (thanks to lovely folks’ guidance in this community) to make sure that external links opened in a new tab. At the time, we were specifically concerned about social media links being opened in a new tab (keeping the original tab to our website open so people don’t get distracted and forget about us). It turns out, this made ALL links (including product links) open in a new tab.

Can this be fixed? We have a pop up set to activate upon arrival, but because product links open a “new” visit, the pop-up is happening on every product page. Very annoying from a customer experience perspective.

At this point, it’s less important that the social links open in new tabs and more important that the shopping experience be enjoyable and seamless.

Theme is Studio. Site is here if helpful for context: www.seamsbetter.com – Thank you!

@seamsbetter - was any kind of javascript code was used to open links in new tab?

FYI to anyone who comes across the same issue/need: I found the solution. Change any instances of:

target=“_blank” within the card-product.liquid file to:

target=“_self”

I found the solution, thank you!