[TYPO3-english] RealURL

Sergey Alexandrov serg at alexandrov.us
Wed Oct 26 19:02:47 CEST 2011


Dmitry,

YAG = Yet Another Gallery

Default RealURL configuration (autogenerated), just added 2 lines, so it
looks like:

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array (
 'encodeSpURL_postProc' => array('yag' =>
'EXT:yag/Classes/Hooks/RealUrlHook.php:user_Tx_Yag_Hooks_RealUrl->encodeSpURL_postProc'),
 'decodeSpURL_preProc' => array('yag' =>
'EXT:yag/Classes/Hooks/RealUrlHook.php:user_Tx_Yag_Hooks_RealUrl->decodeSpURL_preProc'),
 '_DEFAULT' =>
......
all the other stuff

Hook: encodeSpURL_postProc

What's wrong:
    hook generates URL:
http://domain.tld/welcome.html/gallery/47/galleryAlbums/animals
    while it suppose to be:
http://domain.tld/welcome/gallery/47/galleryAlbums/animals<http://domain.tld/welcome.html/gallery/47/galleryAlbums/animals>
.html

On Wed, Oct 26, 2011 at 3:31 AM, Dmitry Dulepov <dmitry.dulepov at gmail.com>wrote:

> Hi!
>
>
> Sergey Alexandrov wrote:
>
>> Was working on RealURL hooks for YAG and found it work fine unless
>> 'fileName' and defaultToHTMLsuffixOnPrev=1 defined in the _DEFAULT array.
>>
>> For example, if I set defaultToHTMLsuffixOnPrev = 0, YAG's hook
>> generates good (with some help) enough paths like:
>>
>> http://domain.tld/welcome/**gallery/47/galleryAlbums/**animals<http://domain.tld/welcome/gallery/47/galleryAlbums/animals>
>>
>> But when I set defaultToHTMLsuffixOnPrev = 1, generated URL become
>> wrong, like:
>>
>> http://domain.tld/welcome.**html/gallery/47/galleryAlbums/**animals<http://domain.tld/welcome.html/gallery/47/galleryAlbums/animals>
>>
>> In this case YAG's encode hook receive $params['URL'] =
>> welcome.html?tx_yag_pi1%**5Baction%5D=list&tx_yag_pi1%**
>> 5Bcontroller%5D=Gallery&cHash=**1d031b88b4691deeaf00cbbec1b6c1**97
>>
>> and encodes the query string (starting after '?') pretty well, but the
>> 'final' URL contains welcome.html which is not correct.
>>
>
> Why isn't it correct?
>
> I have no idea what YAG is, what your RealURL configuration is and what
> hook you try to implement and what you do in that hook :(
>
> --
> Dmitry "itoldyou" Dulepov
> TYPO3 core&security team member
> E-mail: dmitry.dulepov at typo3.org
> Web: http://dmitry-dulepov.com/
>
>
> ______________________________**_________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**english<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english>
>


More information about the TYPO3-english mailing list