diff --git a/extra/lib/plausible/help_scout.ex b/extra/lib/plausible/help_scout.ex index 76bb4e409..11e4d9adb 100644 --- a/extra/lib/plausible/help_scout.ex +++ b/extra/lib/plausible/help_scout.ex @@ -106,7 +106,7 @@ defmodule Plausible.HelpScout do sites_count: Plausible.Teams.owned_sites_count(team), sites_link: Routes.kaffy_resource_url(PlausibleWeb.Endpoint, :index, :sites, :site, - search: user.email + custom_search: user.email ) }} end diff --git a/test/plausible/help_scout_test.exs b/test/plausible/help_scout_test.exs index 67d88674a..ad39086aa 100644 --- a/test/plausible/help_scout_test.exs +++ b/test/plausible/help_scout_test.exs @@ -61,7 +61,7 @@ defmodule Plausible.HelpScoutTest do crm_url = "#{PlausibleWeb.Endpoint.url()}/crm/auth/user/#{user_id}" owned_sites_url = - "#{PlausibleWeb.Endpoint.url()}/crm/sites/site?search=#{URI.encode_www_form(email)}" + "#{PlausibleWeb.Endpoint.url()}/crm/sites/site?custom_search=#{URI.encode_www_form(email)}" assert {:ok, %{ @@ -410,7 +410,7 @@ defmodule Plausible.HelpScoutTest do crm_url = "#{PlausibleWeb.Endpoint.url()}/crm/auth/user/#{user_id}" owned_sites_url = - "#{PlausibleWeb.Endpoint.url()}/crm/sites/site?search=#{URI.encode_www_form(email)}" + "#{PlausibleWeb.Endpoint.url()}/crm/sites/site?custom_search=#{URI.encode_www_form(email)}" assert {:ok, %{ @@ -448,7 +448,7 @@ defmodule Plausible.HelpScoutTest do crm_url = "#{PlausibleWeb.Endpoint.url()}/crm/auth/user/#{user2.id}" owned_sites_url = - "#{PlausibleWeb.Endpoint.url()}/crm/sites/site?search=#{URI.encode_www_form(user2.email)}" + "#{PlausibleWeb.Endpoint.url()}/crm/sites/site?custom_search=#{URI.encode_www_form(user2.email)}" assert {:ok, %{