Issue Task New Orphaned

#86887Enable 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.

Daniel Siepmann 11/08/18, 14:29 updated 12/04/18, 13:53

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

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[TASK] 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. Resolves: #86887 Releases: main