mirror of
https://github.com/flarum/framework.git
synced 2025-03-15 00:05:12 +08:00
Stop opening external links in new tabs
We accept that this may be desired by forum owners and will offer an extension to enable this feature. By default, we will not make any assumptions and simply adopt the web's and browsers' default behavior. Fixes #859.
This commit is contained in:
parent
bf79f2474c
commit
4f06133d75
@ -137,7 +137,6 @@ class Formatter
|
||||
$dom = $configurator->tags['URL']->template->asDOM();
|
||||
|
||||
foreach ($dom->getElementsByTagName('a') as $a) {
|
||||
$a->setAttribute('target', '_blank');
|
||||
$a->setAttribute('rel', 'nofollow ugc');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user