Commit 19c70a12 by Torkel Ödegaard

fixed oauth login redirect when using app sub url

parent 4cc8a9bd
...@@ -3,7 +3,6 @@ app_mode = development ...@@ -3,7 +3,6 @@ app_mode = development
[server] [server]
router_logging = false router_logging = false
static_root_path = grafana/src static_root_path = grafana/src
root_url = %(protocol)s://%(domain)s:%(http_port)s/
[oauth] [oauth]
enabled = true enabled = true
......
...@@ -76,5 +76,5 @@ func OAuthLogin(ctx *middleware.Context) { ...@@ -76,5 +76,5 @@ func OAuthLogin(ctx *middleware.Context) {
// login // login
loginUserWithAccount(userQuery.Result, ctx) loginUserWithAccount(userQuery.Result, ctx)
ctx.Redirect("/") ctx.Redirect(setting.AppSubUrl + "/")
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment