baseurl

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)
stiller
Posts: 43
Joined: 05 Mar 2016, 15:59

baseurl

Post by stiller » 07 Nov 2018, 22:54

Since TYPO3 8.7.20 aimeos can't fetch the baseurl from TYPO3 anymore.
this leads to broken links in E-Mails
TYPO3 8.7.18 works fine.
We are using aimeos 18.10.2

is there a workaround?

cheers. V

User avatar
aimeos
Administrator
Posts: 3097
Joined: 01 Jan 1970, 00:00

Re: baseurl

Post by aimeos » 07 Nov 2018, 23:25

How does the URLs look like in 8.7.20? Does it also occur with 8.7.19?

Generating URLs in the scheduler tasks require a domain record. Is the result different between the versions?
https://github.com/aimeos/aimeos-typo3/ ... e.php#L176
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

stiller
Posts: 43
Joined: 05 Mar 2016, 15:59

Re: baseurl

Post by stiller » 07 Nov 2018, 23:35

no clou about 8.7.19.
in 8.7.18. the E-Mail-Links to basket products are correct.
in 8.7.20 the domain is missing

User avatar
aimeos
Administrator
Posts: 3097
Joined: 01 Jan 1970, 00:00

Re: baseurl

Post by aimeos » 08 Nov 2018, 09:47

Can you please check 8.7.19 and have a look if the domain record isn't fetched in 8.7.20?
https://github.com/aimeos/aimeos-typo3/ ... e.php#L176
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

stiller
Posts: 43
Joined: 05 Mar 2016, 15:59

Re: baseurl

Post by stiller » 09 Dec 2018, 00:01

sorry. it took me a while to come back to this.
domain record of links in typo3 8.7.19 mailings is set correctly.
the problem is obviously caused by changes in 8.7.20.

any plans to react to this?

stiller
Posts: 43
Joined: 05 Mar 2016, 15:59

Re: baseurl

Post by stiller » 12 Dec 2018, 23:56

this has become a hot topic since TYPO3 has published security updates on 11/12.
Product links in Aimeos E-MAils remain to be broken with TYPO3 8.7.21
are you planning to provide a fix for the missing domain record?

User avatar
aimeos
Administrator
Posts: 3097
Joined: 01 Jan 1970, 00:00

Re: baseurl

Post by aimeos » 14 Dec 2018, 10:09

You can also use an environment variable to pass the domain:
https://github.com/aimeos/aimeos-typo3/ ... e.php#L186
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
aimeos
Administrator
Posts: 3097
Joined: 01 Jan 1970, 00:00

Re: baseurl

Post by aimeos » 14 Dec 2018, 14:10

We've tested retrieving the domain for the Aimeos advanced scheduler task in 8.7.22 and 9.5.1 and both work without problem. As no one else reported such an issue, it's probably a problem of your installation.

Can you please check if the domain record for your root page is set and if the page ID for the detail page in the Aimeos advanced scheduler task is set to the correct page?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

stiller
Posts: 43
Joined: 05 Mar 2016, 15:59

Re: baseurl // domain record

Post by stiller » 15 Dec 2018, 00:41

that's surprising since my configuration is working with typo3 8.7.19 and below.
domain record is set and page ID for detail view as well although there are severall.
what else can affect the url building in mails?
are there any aimeos specific typoscript settings regarding urls etc.
something like config.absoluteUri = 1 that has to be set somewhere?

regards
Volker

nos3
Posts: 53
Joined: 01 Sep 2015, 13:26
Contact:

Re: baseurl

Post by nos3 » 15 Dec 2018, 16:46

We are noticing the same problem. 8.7.19 was OK, in 8.7.22 the URLs in the e-mails are not absolute any more. It doesn't depend on which Aimeos version we are using (18.10.x or dev-master).

With TYPO3 8.7.22, links in the order confirmation e-mail are:
- CLI: relative without domain and protocol
- web: absolute and with protocol

The domain is still retrieved from the domain records and assigned to $_SERVER['HTTP_HOST'] but that isn't used by TYPO3 any more. Searching in the commits between 8.7.19 and 8.7.22 it turned out that this commit is the problem:
https://github.com/TYPO3/TYPO3.CMS/comm ... e498f80252

If HTTP_HOST isn't set from the beginning, the empty value will be cached and not updated if it changes. The only way to force update is clearing the cache with:

Code: Select all

GeneralUtility::flushInternalRuntimeCaches();

Post Reply