Page 1 of 1

RealURL in scheduler tasks

Posted: 16 May 2019, 16:24
by nvindice
Hi Aimeos team,

when using the scheduler task to create a sitemap or export products, the generated links are not rewritten by RealURL, meaning they have lots of parameters etc. How can I use the RealURL generated links?

Platform: Typo3 v8.7.26
Aimeos: 2018.10 (latest)
RealURL: 2.5.0
Set scheduler configuration: plugin.tx_aimeos.settings.client.html.catalog.detail.url.target = X

Regards,
Nils

EDIT: Some additional information - i activated RealURL logging and found the following entries for each product when manually starting an export job:

Code: Select all

Fri, 17 May 2019 09:48:11 +0200 [DEBUG] request="b25b11c11a109" component="DmitryDulepov.Realurl.Encoder.UrlEncoder": URL "?id=15&ai%5Bd_name%5D=Productname&ai%5Bd_prodid%5D=49&ai%5Bcontroller%5D=Catalog&ai%5Baction%5D=detail" cannot be encoded by realurl 
The url looks good, the regular logs look like this:

Code: Select all

Fri, 17 May 2019 10:28:32 +0200 [DEBUG] request="b5cb32e667890" component="DmitryDulepov.Realurl.Encoder.UrlEncoder": Found speaking url "produkt/d/49/Productname/" for original url "ai%5Baction%5D=detail&ai%5Bcontroller%5D=Catalog&ai%5Bd_name%5D=Productname&ai%5Bd_prodid%5D=49&id=15" and root page id 2 in cache 
There seems to be no difference but the parameter order and the ? at the beginning of the url.

Any ideas?

Re: RealURL in scheduler tasks

Posted: 17 May 2019, 14:27
by nvindice
If anybody ever encounters the same problem: Use the "Aimeos shop advanced scheduler" instead of the regular scheduler task template.

Background: RealURL needs the TSFE to be initialized. In the standard scheduler task, Aimeos won't do that, in "advanced mode" (alias Email6-task) it will.

It might be a good idea to add this information here: https://aimeos.org/docs/TYPO3/Install_A ... uler_tasks - I installed Aimeos by this tutorial a few months ago and then added the sitemap task later, of course to the nightly job...

Re: RealURL in scheduler tasks

Posted: 20 May 2019, 22:06
by aimeos
Added to the documentation