[TYPO3-core] RFC: Bug #14392: typolink creates incomplete links in combination with the forceAbsoluteUrl property

Oliver Hader oliver at typo3.org
Wed May 26 17:28:57 CEST 2010


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=14392

Branch: Trunk

Problem:
The typolink method creates invalid/incomplete links by using the
forceAbsoluteUrl property.
The absolute part and scheme are missing if
* the page is not visible/accessible and
config.typolinkLinkAccessRestrictedPages is used
* a file resource is linked (e.g. "fileadmin/whatever.gif")
* an absolute local URL is linked (e.g. "/")

Solution:
Introduce and use a new method in tslib_content that takes care of
creating absolute URLs for the mentioned cases.

Notes:
The attached text file contains some TypoScript examples to test the patch.

olly
-- 
Oliver Hader
TYPO3 v4 Core Team Leader
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0014392.patch
Type: text/x-patch
Size: 2445 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100526/8aec08f6/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0014392.txt
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100526/8aec08f6/attachment.txt>


More information about the TYPO3-team-core mailing list