Serve Discourse from a subfolder, Login redirects to root path

version:v3.5.1
my website: https://www.example.com/forum
local login(homepage) will redirect to https://www.example.com

Logging in from a non-homepage does not have this issue.

log

Processing by StaticController#enter as HTML Parameters: {"username"=>"****", "password"=>"[FILTERED]", "redirect"=>"https://www.example.com/forum/login"} Redirected to https://www.example.com/
1 Like

Thanks for the report, we will look into it soonish.

2 Likes

I have the same issue. Version: 3.6.0.beta3

1 Like

We are experiencing the same issue after installing 2025.12.0-latest.

@here sorry about that, I think I managed to reproduce and fix the issue

3 Likes

This topic was automatically closed after 16 hours. New replies are no longer allowed.