Skip to content
Wagtail Wagtail + CodeRed Extensions
  • Getting Started
    • Installation
    • Customize the design of your website
    • About The Tutorial
    • Tutorial Part 1: Site Name, Logo, and Global Colors
    • Tutorial Part 2: Adding Pages
    • Tutorial Part 3: Adding Content, Custom CSS
    • Tutorial Part 4: Navbar & Footer
    • Tutorial Part 5: Creating a Blog
    • Tutorial Part 6: Web Page and Google Map
    • Tutorial Part 7: Create Categories with Classifiers
    • Tutorial Part 8: Forms & Contact Pages
    • Tutorial Part 9: SEO Metadata
    • Tutorial Part 10: Images
    • Tutorial Part 11: Password-Protected Pages
  • Advanced Tutorial
    • Customizing Templates & CSS
    • Custom Page Types
  • Features
    • Content Blocks
      • Accordion Block
      • Button Block
      • Card Block
      • Carousel Block
      • Download Block
      • Embed Media Block
      • Film Strip Block
      • Google Map Block
      • HTML Block
      • Image Block
      • Image Gallery Block
      • Image Link
      • Latest Pages Block
      • Modal Block
      • Page Preview Block
      • Price List Block
      • Quote Block
      • Reusable Content Block
      • Table Block
      • Text Block
    • Layout Blocks
      • Card Grid Block
      • Column Block
      • Hero Block
      • Responsive Grid Row Block
      • HTML Block
    • Page Types
      • Article Pages
      • Event Pages
      • Form Pages
      • Location Pages
      • Stream Forms
      • Web Pages
    • Snippets
      • Accordions
      • Carousels
      • Classifiers
      • Content Walls
      • Film Strip
      • Footers
      • Navigation Bars
      • Reusable Content
    • Related Pages
    • Searching
    • Spam Protection
    • Import Pages
    • Mailchimp Integration
  • How-To Guides
    • Best Practices for Images
    • Customize Navbar and Footer
    • Add Tracking Scripts
    • Open External Links in New Tab
    • Translation & Multi-Language Support
    • Run Wagtail CRX with Docker
    • Using a Custom Image Model in Wagtail CRX
    • Convert Existing Site to Use a Custom Image Model
  • Technical Reference
    • Wagtail CRX Django Settings
  • Contributing
  • Deploying & hosting
  • Release Notes
    • v5.0.1 release notes
    • v5.0.0 release notes
    • v4.1.1 release notes
    • v4.1.0 release notes
    • v4.0.1 release notes
    • v4.0.0 release notes
    • v3.0.4 release notes
    • v3.0.3 release notes
    • v3.0.2 release notes
    • v3.0.1 release notes
    • v3.0.0 release notes
    • v2.1.4 release notes
    • v2.1.3 release notes
    • v2.1.2 release notes
    • v2.1.1 release notes
    • v2.1.0 release notes
    • v2.0.0 release notes
    • v1.0.3 release notes
    • v1.0.2 release notes
    • v1.0.1 release notes
    • v1.0.0 release notes
    • v0.25.2 release notes
    • v0.25.1 release notes
    • v0.25.0 release notes
    • v0.24.1 release notes
    • v0.24.0 release notes
    • v0.23.1 release notes
    • v0.23.0 release notes
    • v0.22.3 release notes
    • v0.22.2 release notes
    • v0.22.1 release notes
    • v0.22.0 release notes
    • v0.21.1 release notes
    • v0.21.0 release notes
    • v0.20.0 release notes
    • v0.19.1 release notes
    • v0.19.0 release notes
    • v0.18.2 release notes
    • v0.18.1 release notes
    • v0.18.0 release notes
    • v0.17.0 release notes
    • v0.16.3 release notes
    • v0.16.2 release notes
    • v0.16.1 release notes
    • v0.16.0 release notes
    • v0.15.2 release notes
    • v0.15.1 release notes
    • v0.15.0 release notes
    • v0.14.1 release notes
    • v0.14.0 release notes
    • v0.13.3 release notes
    • v0.13.2 release notes
    • v0.13.1 release notes
    • v0.13.0 release notes
    • v0.12.1 release notes
    • v0.12.0 release notes
    • v0.11.0 release notes
    • v0.10.0 release notes
    • v0.9.1 release notes
    • v0.9.0 release notes
Wagtail Hosting by CodeRed
  1. Docs
  2. How-To Guides
  3. Open External Links in New Tab
Edit on GitHub View source

Open External Links in New TabΒΆ

A common requirement by marketing teams is to force external links to open in a new tab, rather than to navigate the current tab. Wagtail has strong opinions against this practice, hence Wagtail does not provide the ability to set the target attribute of links in rich text fields. But, the reality of the matter is that not everyone shares this opinion.

Wagtail CRX provides a setting that will use JavaScript to open all external links, meaning any link not on the current domain, to open with target='_blank':

Settings > CRX Settings > Open all external links in new tab

← Add Tracking Scripts Translation & Multi-Language Support  β†’
  • Wagtail Hosting by CodeRed
  • Wagtail CRX on GitHub
  • About CodeRed
© Copyright 2018–2025, CodeRed LLC
Created using Sphinx Wagtail Theme 6.5.0 and Sphinx 8.2.3