diff --git a/lib/plausible_web/live/funnel_settings.ex b/lib/plausible_web/live/funnel_settings.ex index 9de1f4b4a..a2167f7a0 100644 --- a/lib/plausible_web/live/funnel_settings.ex +++ b/lib/plausible_web/live/funnel_settings.ex @@ -67,7 +67,7 @@ defmodule PlausibleWeb.Live.FunnelSettings do You need to define at least two goals to create a funnel. Go ahead and <%= link( "add goals", - to: PlausibleWeb.Router.Helpers.site_path(@socket, :new_goal, @domain), + to: PlausibleWeb.Router.Helpers.site_path(@socket, :settings_goals, @domain), class: "text-indigo-500 w-full text-center" ) %> to proceed. diff --git a/test/plausible_web/live/funnel_settings_test.exs b/test/plausible_web/live/funnel_settings_test.exs index 9bb89cf7d..618261daf 100644 --- a/test/plausible_web/live/funnel_settings_test.exs +++ b/test/plausible_web/live/funnel_settings_test.exs @@ -51,12 +51,12 @@ defmodule PlausibleWeb.Live.FunnelSettingsTest do doc = conn |> html_response(200) assert Floki.text(doc) =~ "You need to define at least two goals to create a funnel." - add_goals_path = Routes.site_path(conn, :new_goal, site.domain) + add_goals_path = Routes.site_path(conn, :settings_goals, site.domain) assert element_exists?(doc, ~s/a[href="#{add_goals_path}"]/) end end - describe "FunnelSettings component" do + describe "FunnelSettings live view" do setup [:create_user, :log_in, :create_site] test "allows to delete funnels", %{conn: conn, site: site} do