Bug #82067
closedLinks in RTE with problem when it doesn't have domain
0%
Description
In previous versions, when I added a hyperlink in rte with two dots and bar, like "../index", this link is redirect for domain of my site and link.
Example: "../index" is redirect to "http://my.domain/index".
In actual version (specifically 8.7.4), this error appers when I want to edit record:
#1320286857: File ../index is not valid (".." and "//" is not allowed in path).
TYPO3\CMS\Core\Resource\Exception\InvalidPathException thrown in file
/var/www/html/myproject/siteroot/typo3_src/typo3/sysext/core/Classes/Resource/Driver/AbstractHierarchicalFilesystemDriver.php in line 71.
It means method resolve in TYPO3\CMS\Core\LinkHandling\LinkService interprets two dots and bar like a folder.
Updated by Susanne Moog about 6 years ago
- Sprint Focus set to On Location Sprint
Updated by Nicolai Schirawski about 6 years ago
The behaviour in previous versions was a hack - this hack has been removed in TYPO3 8.
But now a clean solution works:
You can just set the link on tab "external Url" to "index.hmtl".
Than TYPO3 generates the accurate relative link like: <a href="index.html">link-text</a>
But beware!
It only works, if index.html really exists! In this case TYPO3 creates a link to an existing file.
If the file doesn't exist, TYPO3 links to http://index.html