mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 05:13:37 +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
5a9c1a91b2
commit
2641b7c036
|
@ -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