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 LogoutConfirmedEvent when a logout redirect is configured. The actionUri 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 LogoutConfirmedEvent 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 {actionUri} 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="">
Copied!

The evaluation of the noRedirect 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!