2
0

link_targets.rst 646 B

123456789101112131415
  1. Open External Links in New Tab
  2. ==============================
  3. A common requirement by marketing teams is to force external links to open in
  4. a new tab, rather than to navigate the current tab. Wagtail has strong opinions
  5. against this practice, hence Wagtail does not provide the ability to set the
  6. ``target`` attribute of links in rich text fields. But, the reality of the
  7. matter is that not everyone shares this opinion.
  8. Wagtail CRX provides a setting that will use JavaScript to open all external
  9. links, meaning any link not on the current domain, to open with
  10. ``target='_blank'``:
  11. **Settings > General > Open all external links in
  12. new tab**