walsgit / external-links-in-new-tab
Opens all external links in a new tab
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:TypeScript
Type:flarum-extension
Requires
- flarum/core: ^1.2.0
This package is auto-updated.
Last update: 2024-11-18 13:57:04 UTC
README
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