Closed matthewlehner closed 4 years ago
Before this change, maybe_store_return_to stores the request_path attribute of the Plug.Conn, but does not handle the query_string if it is present.
maybe_store_return_to
request_path
query_string
Now, we append the query_string to the request_path if it is present, in order to paths with query strings, and without them.
Ah, thanks for the refactor! I wondered if that would be a better approach and originally had written it into a case statement. This looks much better!
Thanks! Looks great! 🎉
Before this change,
maybe_store_return_to
stores therequest_path
attribute of the Plug.Conn, but does not handle thequery_string
if it is present.Now, we append the
query_string
to therequest_path
if it is present, in order to paths with query strings, and without them.