[TYPO3-english] Problem with # links and CoolURI
Pero Matic
takoje at takoje.hr
Thu Oct 7 18:39:52 CEST 2010
"Jan Bednarik" <info at bednarik.org> wrote in message
news:mailman.1.1286460041.24894.typo3-english at lists.typo3.org...
> Well, it doesn't matter whether it's dynamic or static.
>
> It look more like server issue. The prefix for anchors is created this
> way:
>
> $scriptPath = $GLOBALS['TSFE']->absRefPrefix .
> substr(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'),strlen(t3lib_div::getIndpEnv('TYPO3_SITE_URL')));
>
> For some reason, you're getting index.php?id...
>
> Anyway, this is not CoolUri issue, because CoolUri doesn't take part here.
Hm. Do u have some advice how to debug this?
I tried with this piece of code:
if (!empty($params['pObj']->siteScript)) {
$cond = $params['pObj']->siteScript &&
substr($params['pObj']->siteScript,0,9)!='index.php' &&
substr($params['pObj']->
$paramsinurl = '/'.$params['pObj']->siteScript;
t3lib_div::devLog('SITESCRIPT: '.$paramsinurl,'CoolUri');
} else {
$cond = t3lib_div::getIndpEnv('REQUEST_URI') &&
substr(t3lib_div::getIndpEnv('REQUEST_URI'),1,9)!='index.php' && substr
$paramsinurl = t3lib_div::getIndpEnv('REQUEST_URI');
t3lib_div::devLog('REQUEST_URI: '.$paramsinurl,'CoolUri');
}
and the first condition is allways true. I removed if and put only this:
$cond = t3lib_div::getIndpEnv('REQUEST_URI') &&
substr(t3lib_div::getIndpEnv('REQUEST_URI'),1,9)!='index.php' && substr
$paramsinurl = t3lib_div::getIndpEnv('REQUEST_URI');
t3lib_div::devLog('REQUEST_URI: '.$paramsinurl,'CoolUri');
but i get the same result :-(
Regards.
More information about the TYPO3-english
mailing list