Skip to content

Commit

Permalink
Add query string to 404 return to param
Browse files Browse the repository at this point in the history
  • Loading branch information
ukutaht committed Dec 17, 2024
1 parent d43896c commit b9a113b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plausible_web/templates/error/404_error.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<% end %>
<div class="mt-4 flex">
<%= if !@conn.assigns[:current_user] do %>
<.button_link href={Routes.auth_path(@conn, :login_form, return_to: @conn.request_path)} class="mr-4">Log in</.button_link>
<.button_link href={Routes.auth_path(@conn, :login_form, return_to: @conn.request_path <> "?" <> @conn.query_string)} class="mr-4">Log in</.button_link>
<% end %>
<.button_link theme="bright" href={PlausibleWeb.LayoutView.home_dest(@conn)}>
Go to homepage
Expand Down

0 comments on commit b9a113b

Please sign in to comment.