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

Redirect action on included form

form

Started by Georges Papas 7 years ago · 0 replies · 586 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 Slebeig, 5 days ago
1 103 5 days ago
Plugins · by Rene, 4 weeks ago
2 303 4 weeks ago
Plugins · by Xavier, 2 months ago
2 226 1 month ago
Plugins · by Luka Prinčič, 7 years ago
3 1413 2 months ago
Plugins · by Sebastian van de Meer, 2 months ago
1 322 2 months ago