♻️ Move throwing redirect exception into method
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / pages / DeleteSonePage.kt
index f65e378..3f99730 100644 (file)
@@ -24,7 +24,7 @@ class DeleteSonePage @Inject constructor(webInterface: WebInterface, loaders: Lo
                        if (soneRequest.httpRequest.isPartSet("deleteSone")) {
                                soneRequest.core.deleteSone(currentSone)
                        }
-                       throw RedirectException("index.html")
+                       redirectTo("index.html")
                }
        }