@@ -204,7 +204,7 @@ func NewOAuthProxy(opts *Options, validator func(string) bool) *OAuthProxy {
206 redirectURL := opts.redirectURL
206 redirectURL := opts.redirectURL
207− if redirectURL.String() == "" {
207+ if redirectURL.Path == "" {
208 redirectURL.Path = fmt.Sprintf("%s/callback", opts.ProxyPrefix)
208 redirectURL.Path = fmt.Sprintf("%s/callback", opts.ProxyPrefix)