mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Org: Fix redirection logic to work consistently (#96521)
fix unexpected redirection
This commit is contained in:
parent
eb38a63559
commit
4477cad1ba
@ -50,7 +50,7 @@ func OrgRedirect(cfg *setting.Cfg, userSvc user.Service) web.Handler {
|
||||
qs = fmt.Sprintf("%s&kiosk", urlParams.Encode())
|
||||
}
|
||||
|
||||
newURL := fmt.Sprintf("%s%s?%s", cfg.AppURL, strings.TrimPrefix(c.Req.URL.Path, "/"), qs)
|
||||
newURL := fmt.Sprintf("%s%s?%s", cfg.AppSubURL, strings.TrimPrefix(c.Req.URL.Path, "/"), qs)
|
||||
|
||||
c.Redirect(newURL, 302)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user