Task #86887
openEnable 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.
0%
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