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

Have URI param() and query() methods been disabled? For security reasons?

Solved by Andy Miller View solution

Started by ian russell 2 months ago · 2 replies · 430 views
2 months ago

Our web pages link to one common form page by clicking a contact button. I have tried using URI param() and query() methods in the contact form page to transfer url data from the referring page.

Both methods appear to be disabled (although still described in the 1.7 documentation. Is this for security reasons?

Is there another way to add the referring page url to a hidden field in the contact form?

Thank you

Ian

2 months ago Solution

The question is how are you using URI param/query? do you mean you have twig in your page content? Twig is disabled by default in page content for security reasons, although it can be reenabled if you need to. But for the majority of people having Twig off by default is the safer bet.

2 months ago

Yes, I have twig in the page content. All working now. Many thanks, Andy.

Suggested topics

Topic Participants Replies Views Activity
General · by jeremycherfas, 4 days ago
2 86 14 hours ago
General · by Old Man Umby, 2 days ago
1 58 2 days ago
General · by Sebastian, 4 days ago
1 79 4 days ago
General · by Andy Miller, 2 weeks ago
0 215 2 weeks ago
General · by ready-4-IT, 6 months ago
1 715 3 weeks ago