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

Add convenience methods for redirecting from a Razor Page back to itself #5953

Closed
DamianEdwards opened this issue Mar 13, 2017 · 2 comments
Closed

Comments

@DamianEdwards
Copy link
Member

DamianEdwards commented Mar 13, 2017

Right now, you have to return Redirect("/url/to/page"). We should have a first-class method for this so that you don't have to pass in the URL, e.g. return RedirectToSenf();

@rynowak
Copy link
Member

rynowak commented Apr 4, 2017

@pranavkm - Let's make this a follow up to your current set of changes.

Add a RedirectToPage() and RedirectToPage(object values). These call RedirectToPage(string) and RedirectToPage(string, object) respectively with the current page's name (from route values).

@rynowak
Copy link
Member

rynowak commented Apr 10, 2017

1e7972b

@rynowak rynowak closed this as completed Apr 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants