Merge branch 'main' into develop

develop
Nikita Tokarchuk 3 years ago
commit 992059d17b
Signed by: mainnika
GPG Key ID: A595FB7E3E56911C
  1. 6
      pkg/routes/index.go

@ -49,7 +49,11 @@ func (r *Routes) usePostfixForce(c *routing.Context) (err error) {
fullPath = append(fullPath, '.') fullPath = append(fullPath, '.')
fullPath = append(fullPath, []byte(templates.URLPostfix)...) fullPath = append(fullPath, []byte(templates.URLPostfix)...)
fullPath = c.QueryArgs().AppendBytes(fullPath)
if c.QueryArgs().Len() > 0 {
fullPath = append(fullPath, '?')
fullPath = c.QueryArgs().AppendBytes(fullPath)
}
return r.relativeRedirectBytes(c, fullPath, fasthttp.StatusFound) return r.relativeRedirectBytes(c, fullPath, fasthttp.StatusFound)
} }

Loading…
Cancel
Save