[TYPO3] cron_printlink & RealURL generates wrong urls ?

Dmitry Dulepov [typo3] dmitry at typo3.org
Fri Mar 28 15:06:32 CET 2008


Hi!

Dmitry Martynenko wrote:
> I use cron_printlink and have RealURL with following lines in my
> realurl_conf.php:
> 
>         'fileName' => array(
>                 'index' => array(
>                         '_DEFAULT' => array(
>                                 'keyValues' => array(),
>                         ),
>                         'print.html' => array(
>                                 'keyValues' => array ('type' => 98, ),
>                         ),
>                 ),
>         ),
> 
> But generated print links looks like http://site.com/news/article/3456/?type=98
> instead of http://site.com/news/article/3456/print.html
> 
> How can I correct this?

Quote from the manual, page 18, about "index[filename][“keyValues”]":

"Important: The order in which the filenames occur is of great importance since the first filename that matches will be chosen. You should arrange the filenames strategically. See example below."

You have _DEFAULT as first value. It always matches because has no variables. So it is always used in your case.

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"


More information about the TYPO3-english mailing list