]> source.dussan.org Git - gitea.git/commit
Add NotFound handler (#18062) (#18067)
authorzeripath <art27@cantab.net>
Wed, 22 Dec 2021 15:26:37 +0000 (15:26 +0000)
committerGitHub <noreply@github.com>
Wed, 22 Dec 2021 15:26:37 +0000 (15:26 +0000)
commit6100935a777daf764547b4825e956330cd42ef43
treecf4266aa5cfac0457c306eaf3d5cdd57a485ea65
parent6de75224de3c8c9bd75e8e4b9e78c22a3cf468e1
Add NotFound handler (#18062) (#18067)

Backport #18062

PR #17997 means that urls with terminal '/' are no longer immediately mapped
to the url without a terminal slash. However, it has revealed that the NotFound handler
appears to have been lost.

This PR adds back in a NotFound handler that simply redirects to a path without the
terminal slash or runs the NotFound handler.

Fix #18060

Signed-off-by: Andrew Thornton <art27@cantab.net>
integrations/links_test.go
integrations/signout_test.go
routers/web/web.go