Bug #21053
closed
Support for SSL and absolute Links
Added by Daniel Poetzinger about 15 years ago.
Updated over 13 years ago.
Description
Its very useful to have two more settings in typolink:
- forceSSL (adds https to the link)
- forceAbsolute (ensures that the link is absolute t3lib_div::locationHeaderUrl($url);)
(issue imported from #M11950)
Files
patch adds two new configurations:
usage e.g.:
typolink.parameter=60
typolink.forceAbsoluteUrl=1
typolink.forceHttps=1
Maybe it's better to use
typolink.forceAbsoluteUrl = 1
typolink.forceAbsoluteUrl.protocol = https
since forcing the protocol requires an absolute URL already
Find attached a new patch (v2) that does not use the replacements anymore, but is built into the domain linking part of 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
}
Committed to SVN Trunk (rev. 6966)
- Target version deleted (
4.4.0)
Also available in: Atom
PDF