Skip to content
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

Redirect Site Base Url Doesn't Respect @web alias in craft. #331

Open
developingchris opened this issue Feb 21, 2025 · 1 comment
Open
Labels
bug Something isn't working

Comments

@developingchris
Copy link

Describe the bug

Our craft instance is running behind a reverse proxy on an internal domain to our hosting provider. Servd.
But our web application reverse proxies at a different url.(e.g project.production.servd.dev, is proxied to ourproject.com)
Setting the alias and environment variable has been fine for most functions of craft.
However retour redirection is using the internal hostname and not the resulting url in the @web alias.

To reproduce

Steps to reproduce the behaviour:

  1. Have a site running on a subdomain, with the web alias running on another subdomain
  2. When you curl the page the 302 you are returned will return the unaliased base url.

Expected behaviour

The base url would ultimately read and respect the @web alias placed in the config for the given site as the ultimately base url.

Screenshots

If applicable, add screenshots to help explain your problem.

Versions

  • Plugin version: 5.0.6
  • Craft version: 5.5.10
@developingchris developingchris added the bug Something isn't working label Feb 21, 2025
@khalwat
Copy link
Contributor

khalwat commented Feb 24, 2025

Retour should be reading this setting from the URL set in Settings -> Sites in your Craft setup. Can you verify for me what those are set to in this case with a screenshot or such?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants