diff --git a/oauthproxy.go b/oauthproxy.go index 739d9af..5a12705 100644 --- a/oauthproxy.go +++ b/oauthproxy.go @@ -287,11 +287,13 @@ func (p *OauthProxy) ErrorPage(rw http.ResponseWriter, code int, title string, m log.Printf("ErrorPage %d %s %s", code, title, message) rw.WriteHeader(code) t := struct { - Title string - Message string + Title string + Message string + ProxyPrefix string }{ - Title: fmt.Sprintf("%d %s", code, title), - Message: message, + Title: fmt.Sprintf("%d %s", code, title), + Message: message, + ProxyPrefix: p.ProxyPrefix, } p.templates.ExecuteTemplate(rw, "error.html", t) }