[{"@context":"https:\/\/schema.org\/","@type":"Article","@id":"https:\/\/blog.jazinbaz.in\/2016\/04\/how-to-redirect-form-after-submit-to-custom-url.html#Article","mainEntityOfPage":"https:\/\/blog.jazinbaz.in\/2016\/04\/how-to-redirect-form-after-submit-to-custom-url.html","headline":"<span>Drupal 8: How to redirect to batch form after submit to custom url (batch api)<\/span>","name":"<span>Drupal 8: How to redirect to batch form after submit to custom url (batch api)<\/span>","description":"I’ve been fighting with this for a long time but then I found simple solution. I needed to redirect to new batch processing page right after clicking submit button so here is a solution public function submitForm(array &amp;$form, FormStateInterface $form_state) &hellip; <a href=\"https:\/\/blog.jazinbaz.in\/2016\/04\/how-to-redirect-form-after-submit-to-custom-url.html\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a>","datePublished":"2016-04-21","dateModified":"2016-04-22","author":{"@type":"Person","@id":"https:\/\/blog.jazinbaz.in\/author\/admin#Person","name":"P1ratRuleZZZ","url":"https:\/\/blog.jazinbaz.in\/author\/admin","identifier":1,"image":{"@type":"ImageObject","@id":"https:\/\/secure.gravatar.com\/avatar\/3e790ffdd56ff2f510827e662728653f?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3e790ffdd56ff2f510827e662728653f?s=96&d=mm&r=g","height":96,"width":96}},"publisher":{"@type":"Organization","name":"P1ratRuleZZZ","logo":{"@type":"ImageObject","@id":"https:\/\/p1ratrulezzz.me\/wp-content\/uploads\/2018\/02\/9b2f997d7ca2f37bd01b3bcc41ec9efb.jpeg","url":"https:\/\/p1ratrulezzz.me\/wp-content\/uploads\/2018\/02\/9b2f997d7ca2f37bd01b3bcc41ec9efb.jpeg","width":60,"height":60}},"image":{"@type":"ImageObject","@id":"https:\/\/blog.jazinbaz.in\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif","url":"https:\/\/blog.jazinbaz.in\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif","height":"16","width":"16"},"url":"https:\/\/blog.jazinbaz.in\/2016\/04\/how-to-redirect-form-after-submit-to-custom-url.html","about":["C\u0435\u0442\u0438","PHP","WEB","\u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442","\u041a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u044b","\u041f\u041e","\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435"],"wordCount":257,"keywords":["drupal","drupal 8","php","recirect"]},{"@context":"https:\/\/schema.org\/","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"2016","item":"https:\/\/blog.jazinbaz.in\/2016\/#breadcrumbitem"},{"@type":"ListItem","position":2,"name":"04","item":"https:\/\/blog.jazinbaz.in\/2016\/\/04\/#breadcrumbitem"},{"@type":"ListItem","position":3,"name":"<span>Drupal 8: How to redirect to batch form after submit to custom url (batch api)<\/span>","item":"https:\/\/blog.jazinbaz.in\/2016\/04\/how-to-redirect-form-after-submit-to-custom-url.html#breadcrumbitem"}]}]