Skip to content

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

Fix shared link

Uku Tahtad1a39dbdecc
diff --git a/lib/plausible_web/views/site_view.ex b/lib/plausible_web/views/site_view.ex
index c000da9339..ecb18ebe2a 100644
--- a/lib/plausible_web/views/site_view.ex
+++ b/lib/plausible_web/views/site_view.ex
@@ -22,7 +22,7 @@ defmodule PlausibleWeb.SiteView do
end
def shared_link_dest(link) do
- PlausibleWeb.Endpoint.url() <> "/share/" <> link.slug
+ plausible_url() <> "/share/" <> link.slug
end
def snippet(site) do