Bug #21053
closedSupport for SSL and absolute Links
0%
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
Updated by Daniel Poetzinger about 15 years ago
patch adds two new configurations:
usage e.g.:
typolink.parameter=60
typolink.forceAbsoluteUrl=1
typolink.forceHttps=1
Updated by Oliver Hader almost 15 years ago
Maybe it's better to use
typolink.forceAbsoluteUrl = 1
typolink.forceAbsoluteUrl.protocol = https
since forcing the protocol requires an absolute URL already
Updated by Oliver Hader almost 15 years ago
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
}