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

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

Solved by Andy Miller View solution

Started by ian russell 1 day ago · 2 replies · 56 views
1 day 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

1 day 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.

9 hours ago

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

Suggested topics

Topic Participants Replies Views Activity
General · by pamtbaau, 1 month ago
2 359 7 days ago
General · by Hanns Mattes, 4 weeks ago
2 343 1 week ago
General · by Andy Miller, 4 weeks ago
0 247 4 weeks ago
General · by Jerry Hunt, 1 month ago
2 385 1 month ago
General · by Andy Miller, 1 month ago
0 277 1 month ago