Project

General

Profile

Actions

Bug #19526

closed

TYPO3 makes external URL wrong

Added by Dmitry Dulepov about 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-10-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The problem happens when user enters external URL in the RTE. Suppose you have two domains: domainA and domainB. You are currently logged in to http://domainA/typo3/ and edit a page that belong to domainB. Now you want to add external URL to the text. This external URL looks like http://domainA/page/. You expect that domainB will show it as http://domainA/page/ but TYPO3 transforms it to become http://domainB/page/ (actually it just strips host part from the external URL).

Technical info: =============
The problem is in the t3lib_parsehtml_proc::urlInfoForLinkTags function. It determines URL type incorrectly.

This function does not detect correct URL type when user enters external URL and that URL contains the same host part as the current BE host. The function treats such case if link is a link to a file and modifies external URL. This causes wrong external URL. There is no way to force TYPO3 produce correct external URL in such case.

(issue imported from #M9679)


Files

9679.diff (839 Bytes) 9679.diff Administrator Admin, 2008-10-29 21:21

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #20017: Creating an absolute link in RTE sometimes gets converted to relative linksClosedStanislas Rolland2009-02-13

Actions
Actions

Also available in: Atom PDF