RedirectSubpath responses redirection with given location and status. It prepends setting.Server.Subpath to the location string.
(location string, status ...int)
| 143 | // RedirectSubpath responses redirection with given location and status. |
| 144 | // It prepends setting.Server.Subpath to the location string. |
| 145 | func (c *Context) RedirectSubpath(location string, status ...int) { |
| 146 | c.Redirect(conf.Server.Subpath+location, status...) |
| 147 | } |
| 148 | |
| 149 | // RenderWithErr used for page has form validation but need to prompt error to users. |
| 150 | func (c *Context) RenderWithErr(msg string, status int, tpl string, f any) { |
no test coverage detected