Issue Bug Closed

#100990Pages with trailing slash in slug are not resolved if requested uri does not contain a trailing slash

Stefan Bürk 06/10/23, 14:45 updated 07/09/24, 14:15

Description

Description

The slug field for pages may contain trailing slash or not.
The generator basically creates it without, but it valid to
enter a trailing slash for a slug manually by the editor.

This led to issues and the past and have been addressed by
changes #86055 and #89091.

At a later point default slug resolving for a language if
a valid localized page exists have been solved, reported
with #88715 and #96010.

If a page slug contains a trailing slash, but the request
does not contain a trailing slash, page is not resolved.

For the mentioned changes above some tests have been added,
sadly not covering all possible constellation and therefore
not detecting this case earlier.

Pages falling into this case should be resolved properly and
covered by a couple of additional tests.

Confirmed for:
- TYPO3 11.5.x
- TYPO3 12.4.x
- TYPO3 main

Not working example

page["slug"]......: /my-page/features/
request...........: /my-page/features

is not resolved. The expectation is, that this page is
resolved correctly.

Working examples

page["slug"]......: /my-page/features/
request...........: /my-page/features/
page["slug"]......: /my-page/features
request...........: /my-page/features/
page["slug"]......: /my-page/features
request...........: /my-page/features

Reviews 3