Skip to content

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

Link to the correct CRM page from User Settings > People (#4320)

RobertJoonas795e137f4f78
diff --git a/lib/plausible_web/templates/site/settings_people.html.heex b/lib/plausible_web/templates/site/settings_people.html.heex
index 1835915731..eb990cfa4a 100644
--- a/lib/plausible_web/templates/site/settings_people.html.heex
+++ b/lib/plausible_web/templates/site/settings_people.html.heex
@@ -23,7 +23,7 @@
<PlausibleWeb.Components.Generic.styled_link
:if={ee?() and Plausible.Auth.is_super_admin?(@current_user)}
new_tab={true}
- href={PlausibleWeb.Endpoint.url() <> "/crm/auth/user/#{@current_user.id}"}
+ href={PlausibleWeb.Endpoint.url() <> "/crm/auth/user/#{membership.user.id}"}
>
CRM
</PlausibleWeb.Components.Generic.styled_link>