diff --git a/ajaxify_submit_forms.module b/ajaxify_submit_forms.module
index a75a7fc..b6dd4f4 100644
--- a/ajaxify_submit_forms.module
+++ b/ajaxify_submit_forms.module
@@ -5,11 +5,13 @@
  * Implement ajax form submit functionality.
  */
 
+use Drupal\Core\Ajax\RedirectCommand;
 use Drupal\Core\Form\FormStateInterface;
 use Drupal\Core\Ajax\AjaxResponse;
 use Drupal\Core\Ajax\HtmlCommand;
 use Drupal\Core\Ajax\PrependCommand;
 use Drupal\Core\Render\Element\StatusMessages;
+use Symfony\Component\HttpFoundation\RedirectResponse;
 
 /**
  * Implements hook_form_alter().
@@ -56,6 +58,11 @@ function ajaxify_submit_forms_form_ajax_callback($form, FormStateInterface & $fo
     // Create AJAX Response object.
     $response = new AjaxResponse();
 
+    $form_response = $form_state->getResponse();
+    if ($form_response instanceof RedirectResponse) {
+      $response->addCommand(new RedirectCommand($form_response->getTargetUrl()));
+    }
+
     $output = [];
 
     if ($form_state->getErrors()) {
