Bug #89091
closedPage with a slug with trailing slash results in 404
Added by Sybille Peters almost 5 years ago. Updated about 1 year ago.
100%
Description
TYPO3 9.5.9
Possible scenario¶
- URL should be /other
- someone enters /other/ in slug field
- Neither /other or /other/ works: you get a 404
Updated by Benni Mack about 4 years ago
- Status changed from New to Needs Feedback
Hey Sybille,
do you have a Route Enhancer configured or this is a plain installation?
Updated by Gerrit Code Review about 4 years ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64655
Updated by Gerrit Code Review about 4 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64655
Updated by Gerrit Code Review about 4 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64655
Updated by Sybille Peters almost 4 years ago
No, I did not configure a route enhancer. It should be reproducible out of the box.
Updated by Riccardo De Contardi almost 4 years ago
I think it is still reproducible on both 9.5.21 and 10.4.8 (just plain TYPO3 with default configuration)
Updated by Sybille Peters almost 4 years ago
- Status changed from Under Review to New
Updated by Ralf Merz over 3 years ago
Hi,
I can confirm the behavior in current v10.4.10. I'm currently upgrading a v8 to v10. We have removed sys_templates etc. to move everything into site configuration.
We have a PageType RouteEnhancer in place, but I can reproduce the 404 when I remove it.
In .htaccess I got some rules to forward to URLs with trailing slash only, to prevent duplicate content. But even when I use the default htaccess I can reproduce 404.
Please ping me (maybe in Slack also) if I can help to find out more etc.
Thx and cheers
merzilla
Updated by Sybille Peters over 3 years ago
- Subject changed from Entering a slug with a trailing slash results in 404 to Page with a slug with trailing slash results in 404
Updated by Sybille Peters over 3 years ago
Would it be an option to have an eval setting for pages.slug that does not allow a trailing slash OR that the trailing slash is automatically removed when saving?
I don't know if there is any scenario where a trailing slash would actually be required in the pages.slug field.
Updated by Sybille Peters over 3 years ago
- Related to Bug #86055: pages.slug always removes the trailing slash added
Updated by Sybille Peters over 3 years ago
- Related to Feature #89552: Redirect URLs with trailing slashes to their canonical non-trailing-slash URL (or the other way around) added
Updated by Sybille Peters over 3 years ago
- Related to Bug #88544: Trailing slash gets added to "homepage" urls if base is without trailing slash added
Updated by Gerrit Code Review over 3 years ago
- Status changed from New to Under Review
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64655
Updated by Gerrit Code Review over 3 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64655
Updated by Gerrit Code Review over 3 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64655
Updated by Gerrit Code Review about 3 years ago
Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/69373
Updated by Benni Mack about 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 87ca0fce154e147db962d683b25406a32a46d63a.
Updated by Gerrit Code Review about 3 years ago
- Status changed from Resolved to Under Review
Patch set 2 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/69373
Updated by Benni Mack about 3 years ago
- Status changed from Under Review to Resolved
Applied in changeset 908169305189721a3baf839ddffbb1c3c17ec14a.
Updated by Benni Mack almost 3 years ago
- Status changed from Resolved to Closed
Updated by Georg Ringer almost 3 years ago
- Related to Bug #95796: Protocol is missing in absolute URLs added
Updated by Georg Ringer almost 3 years ago
- Related to deleted (Bug #95796: Protocol is missing in absolute URLs)
Updated by Stefan Bürk about 1 year ago
- Related to Bug #100990: Pages with trailing slash in slug are not resolved if requested uri does not contain a trailing slash added
Updated by Stefan Bürk about 1 year ago
- Related to Bug #96599: Slugs with and without trailing slash are considered different but will confuse URL handling in frontend added