External Links In New Tab
walsgit/external-links-in-new-tab
Opens all external links in a new tab
- Downloads
- 290
- Version control
- github.com/WalsGit/external-links-in-new-tab
External Links In New Tab
A Flarum extension. Opens all external links in a new tab
Adds target="_blank" rel="noopener noreferrer"
to every external link on the forum frontend (excluding the admin frontend). As of version 1.1.0, it no longer overrides existing rel attributes, but adds the noopener noreferrer
if not found in them (Thanks to @clarkwinkelmann for pointing that out).
Installation
Install with composer:
composer require walsgit/external-links-in-new-tab:"*"
Updating
composer update walsgit/external-links-in-new-tab:"*"
php flarum migrate
php flarum cache:clear
Links
Versions
-
Version 1.1.1.
Likely works with Flarum v1.8.9.
Unlikely to work with Flarum v2.0.0-beta.1.
-
3 additional versions.
-
Extension created.