Go directory up if no Index.html is found #212
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This prevent showing the 404 message and instead gives better results. It also prevents us from having to create orphan Index.rst files in folders that are directly integrated into menues and have no logical index.
https://docs.typo3.org/m/typo3/reference-coreapi/13.4/en-us/Administration/Installation/Environments/Index.html
Would redirect to
https://docs.typo3.org/m/typo3/reference-coreapi/13.4/en-us/Administration/Installation/Index.html
Only if by going up no page is found, then the 404 is displayed. This way we can keep ppl in context
Calling a missing page directly then has the same effect like Using the version switch when the page does not exist anymore in the newer version.
For example if you switch from
https://docs.typo3.org/m/typo3/reference-tca/11.5/en-us/Columns/Properties/Description.html to main via the version switch you are redirected to https://docs.typo3.org/m/typo3/reference-tca/main/en-us/Columns/. While if you try to call https://docs.typo3.org/m/typo3/reference-tca/main/en-us/Columns/Properties/Description.html directly you get a 404 displayed which takes you completely out of the context of what manual and version you where in and even though the description you are seeking is still available.