We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cae3f36 commit 370874cCopy full SHA for 370874c
short.go
@@ -127,7 +127,7 @@ func (s *server) sHandler(w http.ResponseWriter, r *http.Request) {
127
http.Redirect(w, r, "/404.html", http.StatusTemporaryRedirect)
128
}
129
}()
130
- alias := strings.TrimPrefix(r.URL.Path, conf.S.Prefix)
+ alias := strings.TrimSuffix(strings.TrimPrefix(r.URL.Path, conf.S.Prefix), "/")
131
if alias == "" {
132
err = s.stats(ctx, w)
133
return
0 commit comments