Phoenix.Controller.current_path/2

Parsed documentation:
View on GitHub
Returns the current path with the given query parameters.

You may also retrieve only the request path by passing an
empty map of params.

## Examples

    iex> current_path(conn)
    "/users/123?existing=param"

    iex> current_path(conn, %{new: "param"})
    "/users/123?new=param"

    iex> current_path(conn, %{filter: %{status: ["draft", "published"})
    "/users/123?filter[status][]=draft&filter[status][]=published"

    iex> current_path(conn, %{})
    "/users/123"
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.