Redirecting to current Umbraco page with alternate template
Hi all,
I'm currently in the process of finalizing a multi-stage booking process and have a query about redirecting away once the process is complete.
My booking process is built around the product page itself with the form rendered in the view via a HTML.Action statement. Because of this, once the user reaches the end of the booking process, if they press refresh the booking could technically be submitted again.
To counteract this, I would like to perform a RedirectToCurrentUmbracoPage() but send the user to an alternative template that will render the result of the booking that will be stored in the Viewbag.
Hi Alex, that makes sense although I want to try and avoid using a query string and have a friendly URL shown to the end user instead. I've also found that my original issue was made worse by the fact I was trying to do the redirect from a child action.
Redirecting to current Umbraco page with alternate template
Hi all,
I'm currently in the process of finalizing a multi-stage booking process and have a query about redirecting away once the process is complete.
My booking process is built around the product page itself with the form rendered in the view via a HTML.Action statement. Because of this, once the user reaches the end of the booking process, if they press refresh the booking could technically be submitted again.
To counteract this, I would like to perform a RedirectToCurrentUmbracoPage() but send the user to an alternative template that will render the result of the booking that will be stored in the Viewbag.
Does anyone know how I can acheive this?
Hi Jason,
You can try to redirect to current RawUrl, or CurrentPage.Url and pass alttemplate alias via GET.
Is it make sense ?
Cheers
Hi Alex, that makes sense although I want to try and avoid using a query string and have a friendly URL shown to the end user instead. I've also found that my original issue was made worse by the fact I was trying to do the redirect from a child action.
is working on a reply...