mirror of
https://github.com/flarum/framework.git
synced 2024-11-24 02:09:26 +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
3417c0cbee
commit
1bdf7764a9
|
@ -139,7 +139,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…
Reference in New Issue
Block a user