Keep query args when postfix append

main
Nikita Tokarchuk 2 years ago
parent 3cad9177de
commit a5b021e3df
Signed by: mainnika
GPG Key ID: A595FB7E3E56911C
  1. 1
      pkg/routes/index.go

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

Loading…
Cancel
Save