-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Doesn't support multiple host routing #2177
Comments
How can we help this? |
Haehnchen
added a commit
that referenced
this issue
Dec 14, 2023
Haehnchen
added a commit
that referenced
this issue
Dec 14, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a single Symfony app that is served from 3 different domains and presents a different app/UI on each.
Say it's
app.domain.com
,www.domain.com
andapi.domain.com
.Here is the configuration
Then
config/routes/app.yaml
has the following (similar withconfig/routes/landing.yaml
andconfig/routes/api.yaml
):This creates several routes and Symfony apparently assumes it's the locale (it adds it as a
.X
suffix):Now in the IDE the routes are referenced to as
{{ path('app.homepage') }}
for example, but the plugin underlines saying the route doesn't exist and that I should pick amongapp.homepage.0
,app.homepage.1
,app.homepage.2
,app.homepage.3
.The
url_{generating,matching}_routes.php
files both contains the routes similar to what is shown above with thedebug:router
invocation.It contains an additional setting: the locale:
I think the canonical route is exactly what Symfony expects (it will fill the locale argument based on the HTTP host).
PS: I'm sure I had submitted this a couple weeks ago but can't find it... sorry if repost
The text was updated successfully, but these errors were encountered: