Project

General

Profile

Actions

Bug #14799

closed

typolink produces corrupt links

Added by Andreas Dolleschal over 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Frontend
Target version:
-
Start date:
2005-06-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.7.1
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

We have a typo3 installation (V3.7) where we use domain-pointers because we have many subwebs in one installation. If we try to link internally from one domain to another domain, the links will not produced correctly.

For example:

link to Page 1023 in another domain produces this link:

http://another.domain.com/?id=1023

as you can see there is index.php missing. Snooping a little into the Source i found the following statement in class.tslib_content.php (Line 4996)

----
$this->lastTypoLinkUrl = $this->URLqMark('http://'.$tCR_domain.'/?id='.$page['uid'],$addQueryParams).$sectionMark;
----

From my point of view holds $tCR_domain just the URL to the domain (eg: http://another.domain.com) which results in the above Url.

Changing the statement to

----
$this->lastTypoLinkUrl = $this->URLqMark('http://'.$tCR_domain.'/index.php?id='.$page['uid'],$addQueryParams).$sectionMark;
----

Fixes this problem. Hopefully this change does not result in any sideeffects.

(issue imported from #M1172)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #15100: typolink should support the title attributeClosedJan-Erik Revsbech2005-10-18

Actions
Actions #1

Updated by Martin Kutschker almost 19 years ago

Had the problem myself and used the same fix.

Actions #2

Updated by Martin Kutschker almost 19 years ago

Fixed in CVS (HEAD).

Actions

Also available in: Atom PDF