mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-10-30 18:15:59 +01:00
Add the error page.
ControllerBase#NotFound() renders this page instead of redirecting to the top page.
This commit is contained in:
@@ -26,7 +26,7 @@ abstract class ControllerBase extends ScalatraFilter with ClientSideValidationFo
|
||||
}
|
||||
}
|
||||
|
||||
protected def NotFound() = redirect("/")
|
||||
protected def NotFound() = html.error("Not Found")
|
||||
protected def Unauthorized() = redirect("/")
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user