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_trailing_slash doesn't work with custom_base_url #3822

Open
ViliusS opened this issue Apr 24, 2024 · 0 comments
Open

redirect_trailing_slash doesn't work with custom_base_url #3822

ViliusS opened this issue Apr 24, 2024 · 0 comments

Comments

@ViliusS
Copy link
Contributor

ViliusS commented Apr 24, 2024

redirect_trailing_slash funcionality doesn't respect custom_base_url path. For example https://my.example.com/custombaseurl/page1/ will be redirected to https://my.example.com/page1

It looks like $url in Location: redirect here doesn't include custom_base_url at all:

return new Response($code, ['Location' => $url]);

Sadly, I'm not sure what is the best way to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant