Project

General

Profile

Actions

Bug #88633

closed

Slugs ending with substring "index" result in an 404 error

Added by Jan Loderhose over 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2019-06-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Example to reproduce:

1. Create a page called "stock index" resulting in the slug "stock-index".
2. Type [your domain][path to]/stock-index.html in the address bar and hit enter.
3. Observe how TYPO3 presents you with an 404 error.
4. Remove ".html" from the URL and hit enter again.
5. Get the requested page delivered as expected in step 2.

The behavior can be reproduced with any URL ending with "[some nonempty string]index.html".

Here's the route enhancer of the corresponding sites config.

routeEnhancers:
  PageTypeSuffix:
    type: PageType
    default: .html
    map:
      .html: 0
      solr-autocomplete.json: 7384
      sitemap.xml: 1533906435

I suspect that the TYPO3 core calculates false parameters due to some general behavior if a URL ends with "index.html".


Related issues 1 (0 open1 closed)

Precedes TYPO3 Core - Bug #91245: foo/index.html leads to 404 since TYPO3 9.5.16Closed2019-06-272019-06-27

Actions
Actions

Also available in: Atom PDF