Project

General

Profile

Actions

Bug #82067

closed

Links in RTE with problem when it doesn't have domain

Added by Anonymous over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-08-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint

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.

Actions #1

Updated by Susanne Moog over 5 years ago

  • Sprint Focus set to On Location Sprint
Actions #2

Updated by Nicolai Schirawski over 5 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

Actions #3

Updated by Christian Kuhn over 5 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF