Skip to content
This repository was archived by the owner on Aug 21, 2026. It is now read-only.
This repository was archived by the owner on Aug 21, 2026. It is now read-only.

Intercepting post/redirect/get form submissions #116

Closed

Description

@domenic

A goal of app history is that you should be able to use the navigate handler to centrally convert MPA navs into SPA navs.

It'd be good to work out a detailed example of this for form submissions. In particular, given a typical post/redirect/get MPA flow where the <form> does a POST to /submission and the server then does a 303 redirect to /confirmation-page, what does that look like in a navigate handler?

If you just do event.respondWith(...), the URL will stay on /submission. So this speaks to some previous discussions about allowing a redirect-type flow within a navigate handler, so that you could do a client-side "redirect" to /confirmation-page. Then a second navigate event would fire for /confirmation-page, which would result in appropriate DOM updates showing the confirmation.

Activity

  1. added a commit that references this issue on May 27, 2021
    92914bc
  2. added a commit that references this issue on Jun 2, 2021
    e09a56c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions