<p dir="auto">When using the following notation for extending a layout:</p>
<p dir="auto"><code class="notranslate">{% extends "@FOSUser/layout.html.twig" %}</code></p>
<p dir="auto">the view from the actual <code class="notranslate">FOSUserBundle</code> is used, even when it's overriden by a bundle that implements:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public function getParent()
{
    return 'FOSUserBundle';
}"><pre class="notranslate"><code class="notranslate">public function getParent()
{
    return 'FOSUserBundle';
}
</code></pre></div>
<p dir="auto">Url validator accept as valid an url like the following:<br>
<a href="http://testsub+domanin.domanin.com:8080/test" rel="nofollow">http://testsub+domanin.domanin.com:8080/test</a></p>
<p dir="auto">but does not accept<br>
<a href="http://test_sub_domanin.domanin.com:8080/test" rel="nofollow">http://test_sub_domanin.domanin.com:8080/test</a></p>
<p dir="auto">The problem seems to be here:<br>
symfony / src / Symfony / Component / Validator / Constraints / UrlValidator.php<br>
Line 28:                ([\pL\pN\pS-]+.)+[\pL]+                   # a domain name</p>
<p dir="auto">The fix can be as simple as replacing \pS (mathematical symbol) with \pP (punctuation character) or even better i think \pPc (Connector Punctuation character)</p>