Skip to content

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

Disguise dogfooding LV URLs (#4529)

hq109999f8b0caf
diff --git a/lib/plausible_web/router.ex b/lib/plausible_web/router.ex
index 0e84330a6a..5edb275981 100644
--- a/lib/plausible_web/router.ex
+++ b/lib/plausible_web/router.ex
@@ -403,8 +403,17 @@ defmodule PlausibleWeb.Router do
scope alias: Live, assigns: %{connect_live_socket: true} do
pipe_through [:app_layout, PlausibleWeb.RequireAccountPlug]
- live "/:website/installation", Installation, :installation, as: :site
- live "/:website/verification", Verification, :verification, as: :site
+ scope assigns: %{
+ dogfood_page_path: "/:website/installation"
+ } do
+ live "/:website/installation", Installation, :installation, as: :site
+ end
+
+ scope assigns: %{
+ dogfood_page_path: "/:website/verification"
+ } do
+ live "/:website/verification", Verification, :verification, as: :site
+ end
end
get "/:website/settings", SiteController, :settings