♻️ Move throwing redirect exception into method
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / pages / DebugPage.kt
index 29a8f8c..824f6ef 100644 (file)
@@ -12,7 +12,7 @@ class DebugPage @Inject constructor(webInterface: WebInterface, loaders: Loaders
 
        override fun handleRequest(soneRequest: SoneRequest, templateContext: TemplateContext) {
                soneRequest.core.setDebug()
-               throw RedirectException("./")
+               redirectTo("./")
        }
 
 }