[TYPO3-core] RFC: fix bug #1172

Holzinger Franz franz at fholzinger.com
Tue Dec 13 18:10:14 CET 2005


A good and simple solution.

+1


Regards,

Franz

>This is a CVS patch request
>
>Problem: When linking to other domains typolink creates URLs of the form http://domain/?id=nn. This is not very nice looking and I recall that I had troubles with an old Real URL version with this kind of URL.
>
>Solution: Add index.php to the URL.
>
>Masi 
>  
>
>------------------------------------------------------------------------
>
>--- class.tslib_content.php	2005-12-13 16:37:56.000000000 +0100
>+++ class.tslib_content-domainFix.php	2005-12-13 16:41:16.000000000 +0100
>@@ -5133,7 +5133,7 @@
> 							if ($conf['extTarget.'])	{$target = $this->stdWrap($target, $conf['extTarget.']);}
> 							if ($forceTarget)	{$target=$forceTarget;}
> 							$LD['target'] = $target;
>-							$this->lastTypoLinkUrl = $this->URLqMark('http://'.$tCR_domain.'/?id='.$page['uid'],$addQueryParams).$sectionMark;
>+							$this->lastTypoLinkUrl = $this->URLqMark('http://'.$tCR_domain.'/index.php?id='.$page['uid'],$addQueryParams).$sectionMark;
> 						} else {	// Internal link:
> 							if ($forceTarget)	{$target=$forceTarget;}
> 							$LD = $GLOBALS['TSFE']->tmpl->linkData($page,$target,$conf['no_cache'],'','',$addQueryParams,$theTypeP);
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Typo3-team-core mailing list
>Typo3-team-core at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-core
>




More information about the TYPO3-team-core mailing list