Keep query args when postfix append

This commit is contained in:
2022-02-02 22:46:57 +01:00
parent 3cad9177de
commit a5b021e3df
+1
View File
@@ -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)
}