After logging out from the account the user is redirected to a page that redirects to the CMS home page of magento.
I don't have that page and want to redirect to an external page instead.
But I can't find a clean way to change that redirect url to a page outside of magento.
I want to redirect to my page root whereas magento resides in https://www.mymagento.com/shop/
.
The redirect should lead to https://www.mymagento.com/
.
Magento 2 – Change Logout Redirect Link to External Page
customerlogoutmagento-2.1magento2redirect
Best Answer
Override the logout phtml template and update the redirect url.
Change the
$block->getUrl()
to the url where you want to be redirected.