Skip to content
This repository has been archived by the owner on Jan 5, 2018. It is now read-only.

Fix removed redirects #203

Open
wants to merge 2 commits into
base: 8.x-1.x
Choose a base branch
from
Open

Fix removed redirects #203

wants to merge 2 commits into from

Conversation

podarok
Copy link

@podarok podarok commented Jan 18, 2016

If module been used for embeding forms, redirect exception can't be executed.
This patch is a fix for that

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;
Copy link
Member

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?

@podarok
Copy link
Author

podarok commented Jan 19, 2016

@slashrsm done

@slashrsm
Copy link
Member

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:)).

@davereid
Copy link
Member

Can you help explain this more? I don't really understand. An issue in the module issue queue would help.

@podarok
Copy link
Author

podarok commented Jan 27, 2016

@davereid When you are inserting entity form with redirect via entity_embed - redirect created by throwing redirect Exception.
entity_embed doesn't respect that. The patch above fixes an issue

I'm talking about inserting Contact form(core module) via entity_embed.

@podarok
Copy link
Author

podarok commented Jan 27, 2016

@slashrsm Yes, I can do that. Can you add me to co-maintainers on d.org?
Nickname there @podarok as well

@slashrsm
Copy link
Member

You don't need maintainer-ship to create an issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants