[TYPO3-core] RFC: #11950: [Feature]: Support for SSL and absolute Links

Oliver Hader oliver at typo3.org
Mon Feb 1 17:14:21 CET 2010


REMINDER #1

olly


Am 19.01.10 13:34, schrieb Oliver Hader:
> Hi,
> 
> Am 07.11.09 21:03, schrieb Oliver Hader:
>> Hey Mick,
>>
>> Michael Klapper schrieb:
>>> This is an SVN patch request.
>>>
>>> Type: New feature
>>>
>>> Bugtracker references:
>>> http://bugs.typo3.org/view.php?id=11950
>>>
>>> Branches:
>>> trunk
>>>
>>> Problem:
>>> Sometimes it is really helpfull and important to force an link to SSL.
>>>
>>> Solution:
>>> Implement new parameter to tslib_cObj::typolink() to generate links with
>>> SSL & absoulte path if required.
>>>
>>> The attached patch contains the two new parameter "forceAbsoulteUrl" &
>>> "forceHttps".
>>>
>>> Notes:
>>> How to use the two new parameter?
>>>      typolink.parameter=60
>>>      typolink.forceAbsoluteUrl=1
>>>      typolink.forceHttps=1
>>
>> The forceAbsoluteUrl property is fine. However, I'm not sure about the
>> forceHttps, since
>> * it only makes sence on absolute URLs
>> * should only replace the real scheme of an URL (e.g. not in
>> "http://myhost.com/?referer=http://google.com")
>>
>> Maybe it's better to use
>> typolink.forceAbsoluteUrl = 1
>> typolink.forceAbsoluteUrl.protocol = https
>> // protocol is http by default and could be anything else
>>
>> Unfortunately this feature will not make it to TYPO3 4.3 since we're
>> close to the release candidate already...
> 
> I've created a new version of this patch that follows this TypoScript
> structure:
>   typolink {
>     parameter = 13
>     forceAbsoluteUrl = 1
>     forceAbsoluteUrl.scheme = https
>   }
> 
> The new patch does not use the replacements anymore but acts where the
> domain linking is placed in tslib_cObj::typoLink().
> 
> Documentation changes:
> TSref: functions/typolink, new property after "parameter"
> Property: forceAbsoluteUrl
> Data type: boolean
> Description: Forces links to internal pages to be absolute, thus having
> a proper URL scheme and domain prepended.
> Additional properties:
> ..scheme: Defines the URL scheme to be used (https or http, which is the
> default value)
> Example:
> typolink {
>   parameter = 13
>   forceAbsoluteUrl = 1
>   forceAbsoluteUrl.scheme = https
> }
> 
> olly
-- 
Oliver Hader
TYPO3 Release Manager 4.3


More information about the TYPO3-team-core mailing list