-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Routing] Fix subdomain routing with host parameter defaults #60976
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
base: 6.4
Are you sure you want to change the base?
[Routing] Fix subdomain routing with host parameter defaults #60976
Conversation
Thanks for your work. |
Thanks for your work, again. Seems OK for me now. So, this works: when setting values for defaults, they are used. |
When a route has host parameters with defaults (e.g., {subdomain}.example.com with defaults ['subdomain' => 'en']), it should match requests where the host doesn't provide those parameters (e.g., example.com should match with subdomain='en'). 🤖 Generated with [Claude Code](https://claude.ai/code)
9b0e56d
to
58db151
Compare
I think the current behavior is correct. Xxx.example.com had not the same shape as example.com. Using an explicit redirection would look better to me. |
When a route has host parameters with defaults (e.g.,
{subdomain}.example.com
with defaults['subdomain' => 'en']
), it should match requests where the host doesn't provide those parameters (e.g., example.com should match withsubdomain='en'
).