Skip to content

Add the ability to navigate to a download or form submission #82

@domenic

Description

@domenic

In offline discussion, @annevk mentioned that, in the spirit of navigation.navigate() being "a better location.assign()", maybe it should also get the ability to initiate a download or form submission. E.g.

navigation.navigate(url, { download: true });
navigation.navigate(url, { formData });

It seems likely that these capabilities can already be done today, by constructing the appropriate <a> and click()ing it, or the appropriate <form> and submit()ing it. So adding them here would not be costly. However, we'd want to double-check; e.g. I think there might be a user activation requirement for downloads?

Metadata

Metadata

Assignees

No one assigned

    Labels

    additionA proposed addition which could be added later without impacting the rest of the API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions