Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Redirect action on included form

form

Started by Georges Papas 7 years ago · 0 replies · 688 views
7 years ago

Hey there,

I'm having issues with getting my form to redirect to the correct page.

The default route for the form is /forms/growth-form.

However, I'm not accessing it directly, but including it in my Twig Template using:

{% include "forms/form.html.twig" with { form: forms('growthform') } %}

The page is being accessed through the route mysite.com/3/c:client/l:location where client and location are variables.

I'd like to redirect to mysite.com/thank-you/3/c:client/l:location, but I can't seem to get pass the uri.param() variables to the new URL.

Any ideas on what the best way to get achieve this would be?

Thanks

Suggested topics

Topic Participants Replies Views Activity
Plugins · by complanar, 2 weeks ago
2 255 4 days ago
Plugins · by Vladimir Novak, 1 month ago
3 595 1 month ago
Plugins · by Mathieu Lecouturier, 2 months ago
3 417 2 months ago
Plugins · by Slebeig, 2 months ago
1 530 2 months ago
Plugins · by Rene, 3 months ago
2 732 3 months ago