Impulse Theme Redirect

Topic summary

A user is experiencing an issue where all links on their Impulse theme site open in new pages, when they only want external links to behave this way. This resulted from a previous customization that was implemented incorrectly.

Proposed Solution:

  • A JavaScript code snippet was provided that:
    • Checks each link’s hostname against the current site’s hostname
    • Applies target='_blank' and security attributes only to external links
    • Should automatically differentiate between internal and external URLs

Current Status:

  • Another participant noted that the suggested code may work for unmodified themes but might not function properly given the existing customizations
  • Recommended reviewing the actual site to diagnose why the current implementation affects all links
  • The issue remains unresolved pending further investigation of the site’s specific configuration
Summarized with AI on October 27. AI used: claude-sonnet-4-5-20250929.

Awhile back I hired someone to make sure all links that are external should open up into a new page, however, ALL my pages open up to a new page. I don’t want this.

I just want all my external links to open up to a new page. Can someone please share how to do this. Please list all steps so it’s easy to follow.

Thank you,

Hello there Kim @Kim_Thomas I suggest you try out this code here

Need to see your site to understand how it works now and why it’s not the way you wanted it.

The code suggested above may work for unmodified theme, but may not work for yours.