-
Notifications
You must be signed in to change notification settings - Fork 30
Fix removed redirects #203
base: 8.x-1.x
Are you sure you want to change the base?
Conversation
If module been used for embeding forms, redirect exception can't be executed. This patch is a fix for that
@@ -117,6 +117,9 @@ public function process($text, $langcode) { | |||
} | |||
} | |||
catch(\Exception $e) { | |||
if ($e instanceof \Drupal\Core\Form\EnforcedResponseException) { | |||
throw $e; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this look nicer if we'd add another catch() block?
@slashrsm done |
Looks good now. Thanks! Could you create an issue in https://www.drupal.org/project/issues/entity_embed, rebase and squash the two commits and reword commit message to reference issue # and contributors (yourself:)). |
Can you help explain this more? I don't really understand. An issue in the module issue queue would help. |
@davereid When you are inserting entity form with redirect via entity_embed - redirect created by throwing redirect Exception. I'm talking about inserting Contact form(core module) via entity_embed. |
You don't need maintainer-ship to create an issue. |
If module been used for embeding forms, redirect exception can't be executed.
This patch is a fix for that