summaryrefslogtreecommitdiffstats
path: root/web/saml.go
diff options
context:
space:
mode:
Diffstat (limited to 'web/saml.go')
-rw-r--r--web/saml.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/web/saml.go b/web/saml.go
index f3e5a12e8..9cf93bdab 100644
--- a/web/saml.go
+++ b/web/saml.go
@@ -8,7 +8,6 @@ import (
"net/http"
"strings"
- "github.com/mattermost/mattermost-server/app"
"github.com/mattermost/mattermost-server/mlog"
"github.com/mattermost/mattermost-server/model"
)
@@ -143,7 +142,7 @@ func completeSaml(c *Context, w http.ResponseWriter, r *http.Request) {
if action == model.OAUTH_ACTION_MOBILE {
ReturnStatusOK(w)
} else {
- http.Redirect(w, r, app.GetProtocol(r)+"://"+r.Host, http.StatusFound)
+ http.Redirect(w, r, c.GetSiteURLHeader(), http.StatusFound)
}
}
}