Ghost CMS opens every external URL in the same page by default. This behavior distracts the user and increases the bounce rate. While it seems that there is no built-in option in Ghost to open external links in a new tab, we can fix this by injecting a short snippet of code.

## How it works

<script>

// Contain every link in an array.

for (var i = 0; i < links.length; i++) {

// if the link's hostname is different from this Ghost's hostname,
// i.e. if the link is external,

// change the target and rel value as the following.
</script>
Changing the target to _blank will do the job. However, this will run the external link in the same Ghost process, leading to possible performance drops and security risks. We can prevent this by setting the rel value as noopener.