View definition

(Engine).RedirectFixedPath

Defined in github.com/gin-gonic/gin/gin.go

Description

If enabled, the router tries to fix the current request path, if no handle is registered for it. First superfluous path elements like ../ or // are removed. Afterwards the router does a case-insensitive lookup of the cleaned path. If a handle can be found for this route, the router makes a redirection to the corrected path with status code 301 for GET requests and 307 for all other request methods. For example /FOO and /..//Foo could be redirected to /foo. RedirectTrailingSlash is independent of this option.

RedirectFixedPath is referenced in 2 repositories

github.com/gin-gonic/gin github.com/g8os/stor