diff --git a/pkg/metrics/metrics.go b/pkg/metrics/metrics.go index a605cae..207a4e3 100644 --- a/pkg/metrics/metrics.go +++ b/pkg/metrics/metrics.go @@ -161,6 +161,10 @@ func ObserveLogin(amrValue, redirect string) { u.RawQuery = "" u.RawFragment = "" redirect = u.String() + + if u.Host == "" { + redirect = "" + } } Logins.With(prometheus.Labels{