Skip to main content
13 events
when toggle format what by license comment
Sep 28, 2020 at 18:00 history tweeted twitter.com/StackDrupal/status/1310640429487005698
Sep 28, 2020 at 1:41 history became hot network question
Sep 27, 2020 at 20:21 answer added 4uk4 timeline score: 2
Sep 27, 2020 at 19:57 vote accept wonder95
Sep 27, 2020 at 18:51 answer added No Sssweat timeline score: 1
Sep 27, 2020 at 18:41 comment added 4uk4 @wonder95, to avoid that you would never redirect without condition in such cases, see my linked code example. Instead of the check for anonymous you need a check if a webform submission exists.
Sep 27, 2020 at 18:32 history edited wonder95 CC BY-SA 4.0
Added upate
Sep 27, 2020 at 18:11 comment added wonder95 Right, well, to avoid that, I will definitely need some code in my controller that tells me that the webform has been submitted, probably by url param or something similar; I just didn't mention it in the question.
Sep 27, 2020 at 18:09 comment added No Sssweat Well you going to endup with a refirect loop on #4 unless you use $_SESSION or cookie to track that they submitted webform.
Sep 27, 2020 at 18:06 comment added wonder95 @NoSssweat no, because I want to redirect to my webform when they first access the page with my custom form, not after submitting my form.
Sep 27, 2020 at 18:01 comment added No Sssweat Does this answer your question? How to redirect to a page after submitting a form
Sep 27, 2020 at 17:57 comment added 4uk4 When you have a _form route for your custom form Drupal wraps a controller around the form automatically and you can redirect from inside of the form, see drupal.stackexchange.com/a/277596/47547
Sep 27, 2020 at 17:41 history asked wonder95 CC BY-SA 4.0