♻️ Move throwing redirect exception into method
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / pages / UnlockSonePage.kt
index 2c5735b..450a466 100644 (file)
@@ -19,7 +19,7 @@ class UnlockSonePage @Inject constructor(webInterface: WebInterface, loaders: Lo
                        soneRequest.parameters["sone", 44]
                                        .let(soneRequest.core::getLocalSone)
                                        ?.also(soneRequest.core::unlockSone)
-                       throw RedirectException(soneRequest.parameters["returnPage", 256])
+                       redirectTo(soneRequest.parameters["returnPage", 256])
                }
        }