-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Issue 8131 - Use Redirect Factory to Allow Error Message Display on Advanced Search #16952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ixes error message display on advanced search form. magento#8131
Hi @brobie. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
'urlFactory' => $urlFactoryMock | ||
] | ||
); | ||
$instance->execute(); |
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.
I think it will be good idea to check if method returned $responseMock
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.
@ihor-sviziev - Done, pushed, and pending automated testing.
Hi @ihor-sviziev, thank you for the review. |
… Display on Advanced Search #16952
Hi @brobie. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Change controller to use result redirect factory which fixes error message display on advanced search form.
#8131
Description
The way the redirect was initiated from the result controller needed to be changed to use a result redirect so that the error message would be written to the cookie. Without this, the Index controller wouldn't be called when Page Cache was enabled, and the error message would never reach the page.
Fixed Issues (if relevant)
Manual testing scenarios
This should work when page cache is enabled and disabled.
Contribution checklist