Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Redirect to dashboard after site deletion

Uku Taht9edbf394f7d2
diff --git a/lib/plausible_web/controllers/site_controller.ex b/lib/plausible_web/controllers/site_controller.ex
index 7a173b8349..3ec6ce7d62 100644
--- a/lib/plausible_web/controllers/site_controller.ex
+++ b/lib/plausible_web/controllers/site_controller.ex
@@ -162,7 +162,7 @@ defmodule PlausibleWeb.SiteController do
conn
|> put_flash(:success, "Site deleted succesfully along with all pageviews")
- |> redirect(to: "/")
+ |> redirect(to: "/sites")
end
def make_public(conn, %{"website" => website}) do