Ecodev / newsletter

TYPO3 extension to send newsletter
https://extensions.typo3.org/extension/newsletter/
25 stars 26 forks source link

Problem with redirects #138

Closed r4fx closed 7 years ago

r4fx commented 7 years ago

Hi, I have a problem with redirecting clicked links to their targets, every link (opening from email) opens web version of newsletter instead of real target page, parameters are trensfered with link, but there is no redirection.

Example link:

http://foo.com/newsletter/?tx_newsletter_p%5Bn%5D=23&tx_newsletter_p%5Bl%5D=31bd425fe2ab19b129ae16400e7b1b7a&tx_newsletter_p%5Baction%5D=clicked&tx_newsletter_p%5Bcontroller%5D=Link

I would be glad for any help.

My environemnts: TYPO3 7.6.18 PHP 7.0.19 Domain record set on the root of page.

PowerKiKi commented 7 years ago

A proper link with spy enabled should include the type parameter. So it would look like in the email source:

http://example.com/index.php?id=2&type=1342671779&tx_newsletter_p%5Bn%5D=12345&tx_newsletter_p%5Bl%5D=b2ca893c8e2ddb5cf431dfcf66f3cc48&tx_newsletter_p%5Baction%5D=clicked&tx_newsletter_p%5Bcontroller%5D=Link

The one you gave does not include that type parameter, so you should focus on that. Why is the parameter missing ? Because the link is generated by TYPO3 URI Builder, my bet is it has something to do with RealURL (or equivalent). Try disabling it...

r4fx commented 7 years ago

Thank you for the answer, I managed to get redirection works, that's what I did:

in reference to the above I have 2 questions:

PowerKiKi commented 7 years ago

I don't know cooluri at all, so I'm afraid I won't be able to help you about that. If you do find out how, it would be nice to post back here, or create a PR for the docs