Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

RedirectToPage from a form-action handler includes the formaction #6104

Closed

Description

@pranavkm
// Index.cshtml
@page "{formaction?}"
public void OnGetLoginCallback()
{
    // Do sign-in stuff
   return RedirectToPage(new { message = "Hello {user}"});
}

Expected: Redirects to /Index
Actual: RedirectToPage redirects to /Index/LoginCallback (resulting in a loop).

Activity

  1. pranavkm commented on Apr 7, 2017

    @pranavkm
    ContributorAuthor
  2. added this to the 2.0.0-preview1 milestone on Apr 7, 2017
  3. modified the milestone: 2.0.0-preview1 on Apr 10, 2017
  4. rynowak commented on Apr 11, 2017

    @rynowak
    Contributor

    Let's have all of our Page link generation replace the formaction route value with null if it's not explicitly specified. This means that formaction will not be 'sticky' in ambient values.

  5. added 2 commits that reference this issue on Apr 12, 2017
    ec950ac
    d8dded2
  6. added a commit that references this issue on Apr 12, 2017
    3474bdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions