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

Oliver Hader oliver at typo3.org
Tue Jan 19 13:34:36 CET 2010


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011950_v2.patch
Type: text/x-patch
Size: 2442 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100119/f07f70ff/attachment.bin>


More information about the TYPO3-team-core mailing list