Base URL missing in Jobs
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Re: Base URL missing in Jobs
What do you mean? Why the route enhancers are not used for URLs generated by the scheduler?nvindice wrote: ↑09 Sep 2021, 14:22 Well, except for that the route enhancers are not used, and I can't figure out why. The generated link looks like:- any idea what could be missing? Does it work out-of-the-box with Aimeos 2021.07 and Typo3 v10.4.20?Code: Select all
https://xyz.de/produkt/l?ai[currency]=EUR&ai[d_name]=My-product-name&ai[d_pos]=&ai[d_prodid]=113&ai[L]=de&ai[locale]=de&ai[site]=default&cHash=0895b1b3ded488b90c398c30e31ff6c1
No, it doesn't work if you include images from the server in the e-mails and that's the reason they are not added to confirmation e-mails. In the frontend those relative URLs are absolutely correct but for the scheduler task there's room for enhancement. The problem is that it's not easy to get the absolute base URL there because the base URLs from the site configuration can contain a relative path for the language or other relative parts too.aimeos wrote: ↑31 Aug 2021, 05:44 Correct me if I'm wrong, but isn't the idea behind content() to always create URLs that make sense? IMO, in a scheduler environment, there are very little scenarios where a relative image path would be useful. Again: does it work out-of-the-box in the e-mails or are there any (documented?) config settings which must be part of every working setup?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Base URL missing in Jobs
Didn't think of that. I will try to solve it via the config entry you mentioned, thank you.aimeos wrote: ↑10 Sep 2021, 09:01 No, it doesn't work if you include images from the server in the e-mails and that's the reason they are not added to confirmation e-mails. In the frontend those relative URLs are absolutely correct but for the scheduler task there's room for enhancement. The problem is that it's not easy to get the absolute base URL there because the base URLs from the site configuration can contain a relative path for the language or other relative parts too.
Exactly. It may not be very important, but I would like to get "clean" URLs even in the emails.
Re: Base URL missing in Jobs
If you find a solution deep down in the TYPO3 code why the route enhancers are not used in that case, please create a PR and we are happy the merge it
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Base URL missing in Jobs
Oh boy Maybe I have some spare time to look for it. If I find a solution, I'll create a PR, as usual. Thank you for your fantastic support, btw!
Re: Base URL missing in Jobs
Thanks a lot!
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Base URL missing in Jobs
Took a while but found the root cause - the Typo3 URL generator always chose the default route as the "action" parameter was missing.
Created a PR: https://github.com/aimeos/ai-typo3/pull/28
Created a PR: https://github.com/aimeos/ai-typo3/pull/28