Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Redirect action on included form

form

Started by Georges Papas 7 years ago · 0 replies · 792 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 DrPen, 1 month ago
2 478 1 month ago
Plugins · by renedebaaij, 2 months ago
1 351 1 month ago
Plugins · by Thomas, 1 month ago
1 375 1 month ago
Plugins · by complanar, 2 months ago
6 699 2 months ago
Plugins · by BenLaKnet, 2 months ago
1 642 2 months ago