Skip to main content
11 events
when toggle format what by license comment
Feb 12, 2018 at 21:26 answer added John Johnson timeline score: 3
Feb 12, 2018 at 20:38 comment added Robin Schambach Yes that's usually the way to go. Would you mind answering your own question and mark it as accepted as soon as it's possible?
Feb 12, 2018 at 20:32 comment added John Johnson It has the same error whether the redirect has the parameter or not. If I remove the redirect altogether, it works fine. What I wanted to do was use the parameter to show a success message. However, I've looked, and I can do the same with craft.session.getFlash('notice'), found here: craftcms.stackexchange.com/questions/15600/… It looks like a much better solution, so I'll be using that going forward. However, the redirect still fails no matter what I have as its value.
Feb 12, 2018 at 20:27 comment added Robin Schambach Yes you can define a template as well, that is a valid route. I just wanted to ask if you inserted something completely different. About your error: it seems your security check in SecurityManager line 298 fails. I'm not 100% sure if parameters are allowed the way you are going to use it. I never tried such a thing like you and always used proper routing rules or proper post parameters to check if the form was submitted. Could you try to remove the parameter and tell me if it works then? If so I'll answer how to check if a form was submitted with twig or not
Feb 12, 2018 at 20:21 history edited John Johnson CC BY-SA 3.0
added 167 characters in body
Feb 12, 2018 at 20:11 comment added John Johnson Hmmm. So that redirect value needs to be an entry or a route? It can't just be a twig template? The form is on /account/profile and I want to redirect to the same template, just with a parameter appended to the address.
Feb 12, 2018 at 19:14 comment added Robin Schambach Did you define the corresponding route or is there an entry with this slug?
Feb 12, 2018 at 19:13 comment added John Johnson I've updated @RobinSchambach
Feb 12, 2018 at 19:12 history edited John Johnson CC BY-SA 3.0
added 710 characters in body
Feb 12, 2018 at 19:01 comment added Robin Schambach It might be a good idea to show us your form otherwise we can just guess what could be the issue.
Feb 12, 2018 at 18:56 history asked John Johnson CC BY-SA 3.0