[TYPO3-english] ' tipafriend ' suggested code to allow for tipUrl link to keep link set for detail view of record listing

Matthew K - (Swagman Solutions) typo3 at swagmansolutions.com.au
Mon Mar 15 04:38:52 CET 2010


Hi,

If anyone is using extension ' tipafriend ' and would like the tipUrl
referral link that is emailed to recipient to keep the link set the detailed
view of a record listing, ie tt_news single view, then here is some
suggested code.

tipafriend v1.2.3

at approx line 145 find:

  $url = $this->validateUrl(t3lib_div::_GP('tipUrl'));


replace with:

  if (t3lib_div::_GP('submit')!='Send') {
   $url = t3lib_div::getIndpEnv('HTTP_REFERER');
  } else {
   $url = $this->validateUrl(t3lib_div::_GP('tipUrl'));
  }


regards

Matthew K
Swagman Solutions




More information about the TYPO3-english mailing list