Breaking: #103910 - Change logout handling in ext:felogin
See forge#103910
Description
The logout handling has been adjusted to correctly dispatch the PSR-14 event
Logout
when a logout redirect is configured. The
action
variable has been removed, and the logout template has been
updated to reflect the change, including the correct use of the
noredirect
functionality.
Impact
The PSR-14 event Logout
is now correctly dispatched, when a
logout redirect is configured. Additionally, the
noredirect
parameter
is now evaluated on logout.
Affected installations
Websites using ext:felogin with a custom Fluid template for the logout form.
Migration
The
{action
variable is not available any more and should be removed
from the template.
// Before
<f:form action="login" actionUri="{actionUri}" target="_top" fieldNamePrefix="">
// After
<f:form action="login" target="_top" fieldNamePrefix="">
The evaluation of the
no
variable must be added to the template.
// Before <div class="felogin-hidden"> <f:form.hidden name="logintype" value="logout"/> </div> // After <div class="felogin-hidden"> <f:form.hidden name="logintype" value="logout"/> <f:if condition="{noRedirect}!=''"> <f:form.hidden name="noredirect" value="1" /> </f:if> </div>
Copied!