I was playing with Flarum for some time and finally i decided to migrate my community to this software and use in production, but exists one thing i need that couldn't achieve bymyself.
I need to delete rel="nofollow" ONLY from internal links. I need it badly because is a must for SEO. I can't migrate until i have this feature enabled because i will lose tons of "link juice".
If someone can tell me how to achive this will be welcomed. Also if someone offer me a paid extension to cover this, maybe i can accept it depending on the price.
I tryed to play with vendor/flarum/core/src/Formatter/Formatter.php but no luck at all:
/**
* @param Configurator $configurator
*/
protected function configureExternalLinks(Configurator $configurator)
{
$dom = $configurator->tags['URL']->template->asDOM();
foreach ($dom->getElementsByTagName('a') as $a) {
$a->setAttribute('target', '_blank');
$a->setAttribute('rel', 'nofollow');
}
$dom->saveChanges();
}