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 3 days ago · 2 replies · 97 views
3 days 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

3 days 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 days 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 367 1 week ago
General · by Hanns Mattes, 1 month ago
2 353 2 weeks ago
General · by Andy Miller, 1 month ago
0 255 1 month ago
General · by Jerry Hunt, 1 month ago
2 396 1 month ago
General · by Andy Miller, 1 month ago
0 283 1 month ago