Skip to content

URL Params do not work as expected for flag type params #258

@DeWarner

Description

@DeWarner

get_param("reverse") does not return Some("") as expected for query string ?reverse
The expected behavior for URLParams is to treat params with no = in them as if the same as an empty value
localhost:80/api/users?reverse should be equivalent to localhost:80/api/users?reverse=

reference:
https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams#empty_value_vs._no_value

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions