<p dir="auto">So I have this in my app/config/routing.yml:<br>
acme_store_dev:<br>
resource: "@AcmeStoreBundle/Resources/config/routing.yml"<br>
host: acme.{tld}<br>
requirements:<br>
tld: dev|org</p>
<p dir="auto">and something like this in the bundles routing.yml:<br>
acme_store_homepage:<br>
pattern:  /hello/{name}<br>
defaults: { _controller: AcmeStoreBundle:Default:index }<br>
acme_store_product:<br>
resource: "@AcmeStoreBundle/Resources/config/routing/product.yml"<br>
prefix:   /product</p>
<p dir="auto">and the product.yml contains several auto generated routes like that:<br>
product_show:<br>
pattern:  /{id}/show<br>
defaults: { _controller: "AcmeStoreBundle:Product:show" }</p>
<p dir="auto">The problem is within the first configuration. If I only use one host and no tld matching (and any other form of regex matching in hosts) itll lead to this kind of error:</p>
<p dir="auto">An exception has been thrown during the rendering of a template ("Some mandatory parameters are missing ("tld") to generate a URL for route "category_new".") in AcmeStoreBundle:Category:index.html.twig at line 36.</p>
<p dir="auto">I could now start rewriting all that the crud generator made for me or stop using that form of host matching, but Id really like to use those two features - any suggestions? is this a bug that can be fixed? from what I understand the /prefix is supposed to map route extensions dynamically, and independent of any prior routes, which is also quite nifty to have.</p>
<p dir="auto">Currently running into an issue with the new host matching when I'm trying to generate urls that requires me to pass in a host parameter.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="InternalUserController:
    resource: &quot;@ApiBundle/Controller/Internal/UserController.php&quot;
    type: annotation
    host: &quot;api.{domain}&quot;

DashboardController:
    resource: &quot;@DashboardBundle/Controller/DashboardController.php&quot;
    type: annotation
    host: &quot;{domain}&quot;"><pre lang="ymal" class="notranslate"><code class="notranslate">InternalUserController:
    resource: "@ApiBundle/Controller/Internal/UserController.php"
    type: annotation
    host: "api.{domain}"

DashboardController:
    resource: "@DashboardBundle/Controller/DashboardController.php"
    type: annotation
    host: "{domain}"
</code></pre></div>
<p dir="auto">The examples above work perfectly with the url matcher, but when needing to generate the url, it will require me to provide the domain parameter each time. I know this is how it's suppose to function, but it seems a bit annoying to require putting in the domain each time.</p>