I have a simple, one page, MVC application that has a form that will filter down what data is shown once the form has been submitted.
I want users to be able to copy and paste/bookmark the url to include these form values to be preselected.
EDIT: Including example
The user would only see http://localhost/ in their browser when I would like them to see http://localhost/?param1=4&otherItem=testing&test=true
This doesn't work obviously but not sure how I would accomplish this.
public ActionResult Index(int param1 = 0, string otherItem = "", bool test = false)
{
return RedirectToAction("Index", "Home", new { param1, otherItem, test});
}