From dae2229473ed7b2816bbcb414bb80c3bba7084bd Mon Sep 17 00:00:00 2001 From: Nathaniel Caza Date: Thu, 25 Jan 2024 14:02:11 -0600 Subject: [PATCH] normalize public url --- app/cmd.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/cmd.go b/app/cmd.go index 09741d25f8..97221f5915 100644 --- a/app/cmd.go +++ b/app/cmd.go @@ -673,6 +673,8 @@ func getConfig(ctx context.Context) (Config, error) { if err != nil { return cfg, errors.Wrap(err, "parse public url") } + u.Path = strings.TrimSuffix(u.Path, "/") + cfg.PublicURL = u.String() if cfg.HTTPPrefix != "" { return cfg, errors.New("public-url and http-prefix cannot be used together") }