Documentation for Confluence 3.4.
Documentation for [Confluence Cloud] and the latest Confluence Server is available too.

Skip to end of metadata
Go to start of metadata

By default, links are opened in the same window. To force them to be opened in a new window, follow these steps:

  1. Visit Administration >> Custom HTML
  2. Click Edit
  3. In the At end of the HEAD field, insert this code:
    • For external links only, like [http://www.google.com]:
      <script>
      jQuery(document).ready(function() {
          jQuery(".external-link").attr("target", "_blank");
      });
      </script>
      
    • For all type of links (internal and external):
      <script>
      jQuery(document).ready(function() {
          jQuery(".wiki-content a").attr("target", "_blank");
      });
      </script>
      
  4. Hit Save

This customisation will only work for Confluence 3.0.1 and above

  • No labels