- override fun handleRequest(request: FreenetRequest, templateContext: TemplateContext) {
- val returnPage = request.httpRequest.getPartAsStringFailsafe("returnPage", 256)
- val notificationId = request.httpRequest.getPartAsStringFailsafe("notification", 36)
- webInterface.getNotification(notificationId).orNull()?.takeIf { it.isDismissable }?.dismiss()
- throw RedirectException(returnPage)
+ override fun handleRequest(soneRequest: SoneRequest, templateContext: TemplateContext) {
+ val returnPage = soneRequest.httpRequest.getPartAsStringFailsafe("returnPage", 256)
+ val notificationId = soneRequest.httpRequest.getPartAsStringFailsafe("notification", 36)
+ soneRequest.webInterface.getNotification(notificationId).orNull()?.takeIf { it.isDismissable }?.dismiss()
+ redirectTo(returnPage)