Phoenix.Controller.current_path/1

Parsed documentation:
View on GitHub
Returns the current request path, with and without query params.

By default, the connection's query params are included in
the generated path. Custom query params may be used instead
by providing a map of your own params. 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.