*/
@ToadletPath("followSone.html")
class FollowSonePage @Inject constructor(webInterface: WebInterface, loaders: Loaders, templateRenderer: TemplateRenderer) :
- LoggedInPage("followSone.html", "Page.FollowSone.Title", webInterface, loaders, templateRenderer) {
+ LoggedInPage("Page.FollowSone.Title", webInterface, loaders, templateRenderer) {
override fun handleRequest(soneRequest: SoneRequest, currentSone: Sone, templateContext: TemplateContext) {
if (soneRequest.isPOST) {
soneRequest.core.followSone(currentSone, sone.first)
soneRequest.core.markSoneKnown(sone.second)
}
- throw RedirectException(soneRequest.httpRequest.getPartAsStringFailsafe("returnPage", 256))
+ redirectTo(soneRequest.httpRequest.getPartAsStringFailsafe("returnPage", 256))
}
}