Project

General

Profile

Actions

Task #86887

open

Enable urls like `https://example.com/` and `https://example.com/path/to/site.html`, so only `.html` suffix for page type 0 if there is a path.

Added by Daniel Siepmann over 5 years ago. Updated over 5 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2018-11-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

We just discussed how to configure the new URL handling within 9.5.x.

Our goal: Have urls like https://example.com/ and https://example.com/path/to/site.html, so only .html suffix for page type 0 if there is a path.

    PageTypeSuffix:
        default: .html
        index: ''
        map:
            .html: 0
        type: PageType

I know this doesn't fit the current idea of the enhancer. The index is by default set to index, resulting in https://example.com/index.html which I can fully understand.

Most websites still were configured to support the above version. I can understand that this will not work, as you can have .xml: 10 and .json: 15 for example. So TYPO3 does need this to be consistent. But is there a chance to add something like disableSuffixForDefault: true:

    PageTypeSuffix:
        default: .html
        index: ''
        disableSuffixForDefault: true
        map:
            .html: 0
        type: PageType

So TYPO3 will check that the default mapping will be applied, with the index and prevent adding anything?

That should solve the issue and should, hopefully, not be a big deal. If so, I'll open an issue in forge.
Maybe there are other solutions, but I didn't find anything else that still fits the streamlined approach.
Or did I oversee some approach? As there is no issue right now, we might be alone with this issue?
Corresponding stackoverflow entry: https://stackoverflow.com/questions/52903641/real-urls-in-typo3-9-5-0


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #86585: Configurability of page routingClosed2018-10-06

Actions
Actions

Also available in: Atom PDF