Review main Merged

70880[TASK] Cover FE index.php id/type parameter requests with tests

Stefan Bürk CR +2 V +2 Easy +49 −0 updated 09/22/21, 19:33

Commit message

Core has been working with id and type as query
parameter to display FE pages and switch between
defined TypoScript page definitions. Speaking url
has been integrated for v9 through the new routing
feature to do it in a more determistic way as in
comparision to ext:realurl.

As there might be instances using id/type query
parameters for ajax call switches (and eventelly
for eid scrips) in the frontend, normalization has
been implemented to keep this option alive (#88028).

Recently there has been a try to fix a bug for so
some use cases, which broke this support (#94537).

For future it should be considered if it is possible
to drop this option in the future to free id/type
query arguments for instances in the frontend.

There a several issues in this area, for example
broken subfolder installation support and id/type
query parameter on a full speaking url overrule
it with selected id, which is not expected.

To validate that the test fails if support is
broken change in PageRouter following line (150):

$urlPath = str_replace($scriptName, '', $urlPath);

to

$urlPath = str_replace( '/' . $scriptName,
    '', $urlPath);

Build/Scripts/runTests.sh -s functional \
typo3/sysext/frontend/Tests/Functional/SiteHandling/\
SiteRequestTest.php

This patch acts as pre-patche to fix these.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1