diff --git a/lib/music_library_web/live/record_live/index.ex b/lib/music_library_web/live/record_live/index.ex index f5d9e884..9d9f7e3e 100644 --- a/lib/music_library_web/live/record_live/index.ex +++ b/lib/music_library_web/live/record_live/index.ex @@ -92,9 +92,8 @@ defmodule MusicLibraryWeb.RecordLive.Index do @default_records_list_params |> Map.put(:query, query) |> Map.take([:query, :page, :page_size]) - |> URI.encode_query() - {:noreply, push_patch(socket, to: ~s"/records?#{qs}")} + {:noreply, push_patch(socket, to: ~p"/records?#{qs}")} end def handle_event("import", %{"id" => musicbrainz_id, "format" => format}, socket) do diff --git a/lib/music_library_web/live/wishlist_live/index.ex b/lib/music_library_web/live/wishlist_live/index.ex index 0b1dcf0c..d6359bc0 100644 --- a/lib/music_library_web/live/wishlist_live/index.ex +++ b/lib/music_library_web/live/wishlist_live/index.ex @@ -94,9 +94,8 @@ defmodule MusicLibraryWeb.WishlistLive.Index do @default_records_list_params |> Map.put(:query, query) |> Map.take([:query, :page, :page_size]) - |> URI.encode_query() - {:noreply, push_patch(socket, to: ~s"/wishlist?#{qs}")} + {:noreply, push_patch(socket, to: ~p"/wishlist?#{qs}")} end def handle_event("import", %{"id" => musicbrainz_id, "format" => format}, socket) do diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 14ea74ae..9c927325 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -81,8 +81,8 @@ msgstr "" msgid "Edit" msgstr "" -#: lib/music_library_web/live/record_live/index.ex:119 -#: lib/music_library_web/live/wishlist_live/index.ex:116 +#: lib/music_library_web/live/record_live/index.ex:118 +#: lib/music_library_web/live/wishlist_live/index.ex:115 #, elixir-autogen, elixir-format msgid "Error importing record" msgstr "" @@ -206,14 +206,14 @@ msgstr "" msgid "Purchased on" msgstr "" -#: lib/music_library_web/live/record_live/index.ex:110 -#: lib/music_library_web/live/wishlist_live/index.ex:107 +#: lib/music_library_web/live/record_live/index.ex:109 +#: lib/music_library_web/live/wishlist_live/index.ex:106 #, elixir-autogen, elixir-format msgid "Record imported successfully" msgstr "" #: lib/music_library_web/live/record_live/form_component.ex:117 -#: lib/music_library_web/live/wishlist_live/index.ex:129 +#: lib/music_library_web/live/wishlist_live/index.ex:128 #, elixir-autogen, elixir-format msgid "Record updated successfully" msgstr ""