CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #26517

Confirmation link gets double slashes when using absRefPrefix

Added by Benjamin Mack about 2 years ago.

Status:New Start date:2011-04-29
Priority:Should have Due date:
Assignee:- % Done:

100%

Category:-
Target version:-
Votes: 0

Description

Hey alex,

when using config.absRefPrefix = / (which we do for all our projects, instead of baseURL), which is necessary when using with multiple servers and load balancers, the confirmation link gets two slashes.

http://www.myclient.com//newsletter/?tx_powermail_pi1%5Boptinhash%5D=8492715&tx_powermail_pi1%5Boptinuid%5D=1032&cHash=d3b1ef38fc0309ce609062ec467dbdac

This can be prevented easily, if you always do a ltrim($link, '/') on the generated typolink. we do this in a similar way in extbase.

The optimal solution since TYPO3 4.4 however, is to use

typolink.makeAbsoluteUrl = 1
typolink.makeAbsoluteUrl.scheme = http://>

but then we'd have a problem with TYPO3 4.3, so the applied patch should work.

powermailoptin_confirmationlink.patch (2.6 kB) Benjamin Mack, 2011-04-29 20:46

Also available in: Atom PDF