Project

General

Profile

Actions

Bug #21053

closed

Support for SSL and absolute Links

Added by Daniel Poetzinger over 14 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
Start date:
2009-09-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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-https.txt (1.33 KB) patch-https.txt Administrator Admin, 2009-09-17 12:35
0011950_v2.patch (2.38 KB) 0011950_v2.patch Administrator Admin, 2010-01-19 12:30
0011950_v3.patch (2.29 KB) 0011950_v3.patch Administrator Admin, 2010-02-22 11:34

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #22655: typolink creates incomplete links in combination with the forceAbsoluteUrl propertyClosedOliver Hader2010-05-15

Actions
Related to TYPO3 Core - Feature #23491: TYPO3 misses page-option to force SSL oder Non-SSL to pageClosedSteffen Kamper2010-09-01

Actions
Actions #1

Updated by Daniel Poetzinger over 14 years ago

patch adds two new configurations:

usage e.g.:
typolink.parameter=60
typolink.forceAbsoluteUrl=1
typolink.forceHttps=1

Actions #2

Updated by Oliver Hader over 14 years ago

Maybe it's better to use
typolink.forceAbsoluteUrl = 1
typolink.forceAbsoluteUrl.protocol = https
since forcing the protocol requires an absolute URL already

Actions #3

Updated by Oliver Hader about 14 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
}

Actions #4

Updated by Oliver Hader about 14 years ago

Committed to SVN Trunk (rev. 6966)

Actions #5

Updated by Susanne Moog about 13 years ago

  • Target version deleted (4.4.0)
Actions

Also available in: Atom PDF