Issue Bug Resolved

#91761Links with fragment and without parameters broken

Robert Vock 07/08/20, 10:05 updated 11/10/26, 05:35

Description

When linking from a page with parameters to the same page without parameters but with a fragment, the link only contains the fragment. This means the browser does not follow the link, but stays on the same page.

This is a regression introduced with #89068

The problem is, that the check for queryParameters does not check if the current page has parameters:
PageLinkBuilder.php#L399

This breaks the “Return to login form” in felogin on the “Forgot password” page, if the following config is used:

plugin.tx_felogin_pi1.linkConfig.section.field = uid

The Back Link on the Forgot-Password Page will not lead back to the login form, because the tx_felogin_pi1[forgot]=1 parameter is still present in the url.

Current workaround is:

plugin.tx_felogin_pi1.linkConfig.forceAbsoluteUrl = 1

Reviews 3

History 620

  1. Alexander Opitz commented <span data-processor="relativetime" data-value="2020-10-06T10:28:53+00:00" > 10/06/20, 10:28 </span>

    Also working with RouteEnhancers got problematic.

    We have
    employees as page which shows content of listAction
    employees/detail which is same page but inside the detailAction

    On the employees page is a content element with a rte field which contains following link t3://page?uid=17#231 which leads to the output List so the user never comes back from RouteEnhancers subpath.

  2. Gerrit Code Review pushed patch set 1 for main to change 97059 status Accepted Under Review <span data-processor="relativetime" data-value="2026-10-23T08:55:17+00:00" > 10/23/26, 08:55 </span>

  3. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-11-10T05:35:09+00:00" > 11/10/26, 05:35 </span>

    Applied in changeset commit:71f15d1f6fd752d68b6bcc6e97e3e63f540aeba0.