You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The route is matched correctly but when I try to use path in twig it shows the folloing error:
An exception has been thrown during the rendering of a template ("Some mandatory parameters are missing ("subdomain", "domain")
The host shouldnt be set automaticly? Even using the url function instead of path shows me the same error.
I have to explicity add the subdomain and domain parameters to the path twig function.
Is there an easier way?
The text was updated successfully, but these errors were encountered:
HI.
I am trying to make some routes of my application to require a subdomain.
I have added this to my routing.yml
my_route:
resource: "@MyBundle/Resources/config/routing.yml"
host: "{subdomain}.{domain}"
prefix: /some-path
requirements:
domain: %domain%
subdomain: .+
The route is matched correctly but when I try to use path in twig it shows the folloing error:
An exception has been thrown during the rendering of a template ("Some mandatory parameters are missing ("subdomain", "domain")
The host shouldnt be set automaticly? Even using the url function instead of path shows me the same error.
I have to explicity add the subdomain and domain parameters to the path twig function.
Is there an easier way?
The text was updated successfully, but these errors were encountered: