1
0
mirror of https://github.com/flarum/core.git synced 2025-07-31 13:40:20 +02: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:
Franz Liedke
2019-09-26 23:01:24 +02:00
parent 3417c0cbee
commit 1bdf7764a9

View File

@@ -139,7 +139,6 @@ class Formatter
$dom = $configurator->tags['URL']->template->asDOM(); $dom = $configurator->tags['URL']->template->asDOM();
foreach ($dom->getElementsByTagName('a') as $a) { foreach ($dom->getElementsByTagName('a') as $a) {
$a->setAttribute('target', '_blank');
$a->setAttribute('rel', 'nofollow ugc'); $a->setAttribute('rel', 'nofollow ugc');
} }