-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Host regex not matching #6848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
host options uses the same pattern style with placeholders as the |
@Tobion the issue with this is that subdomain becomes a mandatory parameter when generating the url |
Yes optional placeholders for the host have not been implemented yet. |
I started work on #5424 which would also cover this feature easily. But don't know when I'm able to complete it. |
Closing this issue as the answer has been given and the issue with the generation is reported specifically in #6857 |
Following http://symfony.com/doc/master/components/routing/hostname_pattern.html
Adding a Host Regex to Imported Routes¶
You can set a host regex on imported routes:
The host hello.example.com will be set on each route loaded from the new routing resource.
Trying this with:
Fails to match www.domain.com and domain.com, and any other combination.
Debug:
Does symfony use something else than preg_match internally or am i missing something ?
The text was updated successfully, but these errors were encountered: