Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Redirect action on included form

form

Started by Georges Papas 7 years ago · 0 replies · 724 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
6 377 2 weeks ago
Plugins · by BenLaKnet, 2 weeks ago
1 191 2 weeks ago
Plugins · by complanar, 1 month ago
2 471 4 weeks ago
Plugins · by Vladimir Novak, 2 months ago
3 749 2 months ago
Plugins · by Mathieu Lecouturier, 2 months ago
3 588 2 months ago