Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules: Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#8048 by nvindice
16 May 2019, 16:24
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: = X


EDIT: Some additional information - i activated RealURL logging and found the following entries for each product when manually starting an export job:
Code: Select allFri, 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 allFri, 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?
#8055 by nvindice
17 May 2019, 14:27
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: ... 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...