Issue Bug Closed

#26494https is always identified as an external page even for internal pages

Ramo Karahasan 04/29/11, 12:55 updated 06/15/15, 10:42

Description

Following configuration:

in the root template:

config.extTarget = _blank

In the Backend, edit a page, set in the tab “Behaviour” used protocol to https:// and set the link target to _self.

If i click now on the link to this page in the FE (the link is provided properly with https) i always get a new tab opened in the browser, even if i set _self into the link target input field.
So, the link target field has no effect.

SteffenR told me, that if a new url schema is set or a “.” is set before a slash in a link, the link is identified as external.
The problem is in line: 5530 in tslib_content of branch 4-5
@if ($pU[‘scheme’] || ($isLocalFile != 1 && $urlChar && (!$containsSlash || $urlChar < $fileChar))) { // url (external): If doubleSlash or if a ‘.’ comes before a ‘/’.@

Reviews 0

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