Project

General

Profile

Actions

Bug #96599

open

Slugs with and without trailing slash are considered different but will confuse URL handling in frontend

Added by Jigal van Hemert over 2 years ago. Updated 9 months ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2022-01-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If pages exist with the slugs "/foobar" and "/foobar/" the checks for duplicate slugs will not change one to a slug with a trailing number.

When you request the URL domain.ext/foobar one of the pages will be accessed. If that page is disabled the frontend will produce a 404 error.

- Foobar ( slug: /foobar )
- Achive
  - Foobar ( slug: /foobar/ , page hidden)

In this situation domain.ext/foobar produced a 404 error. Changing the slug of the page Foobar in the root to "/foobar-test" made that page accessible. The backend allowed the slug to be renamed back to "/foobar" (the automatic slug generator created that from the page title!).
The workaround was to change the slugs of the page in the archive. This made the active page accessible again.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #100990: Pages with trailing slash in slug are not resolved if requested uri does not contain a trailing slashResolvedStefan Bürk2023-06-10

Actions
Related to TYPO3 Core - Bug #86055: pages.slug always removes the trailing slashClosedBenni Mack2018-08-31

Actions
Related to TYPO3 Core - Bug #89091: Page with a slug with trailing slash results in 404ClosedStefan Bürk2019-09-05

Actions
Actions

Also available in: Atom PDF