Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Redirect action on included form

form

Started by Georges Papas 7 years ago · 0 replies · 529 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 Rene, 1 week ago
2 44 1 week ago
Plugins · by Xavier, 4 weeks ago
2 54 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1181 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 48 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 73 2 months ago