-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
If "host" is set up for a route, then the port is not respected on route generation. #204
Comments
I have the same problem, no way to do it in my local envoirment |
same here 😿 |
This seems to be the same issue as #167 |
I still have the same issue. any update or way to fix it? |
Same here (still) |
It seems like it is the same for schemes. If you specify host but not schemes, http is forced even if you access website through https. # Generates right https urls
subdomain:
resource: 'subdomain/routing.yml' # Generates wrong http urls
subdomain:
resource: 'subdomain/routing.yml'
host: '%subdomain%' # Generates right https urls
subdomain:
resource: 'subdomain/routing.yml'
host: '%subdomain%'
schemes: [https] |
Suppose I have a local web server on port 8888, while my production server is on the standard 80.
Generating an absolute url with
would generate a proper absolute url, like: "http://localhost:8888/news"
By having a specific "host" in the
routing.yml
configuration however does not behave like this.For example, having the following yml config:
Where "news.domain" is a parameter set to "news.example.org" on the production server and to "news.localhost" on the local machine, generating routes results in the following:
The text was updated successfully, but these errors were encountered: