Cocolabs-SAS / cocorico

👐 Cocorico is an open source marketplace solution for services and rentals. More information right here: https://www.cocorico.io/ 🚀 Cocorico is also available in an off-the-shelf SaaS package, check out https://www.hatch.li to launch your platform today. 😍 We are hiring (telecommute welcome 🏡): https://www.welcometothejungle.com/en/companies/cocorico/jobs/candidatures-spontanees#apply
https://www.cocolabs.com
MIT License
857 stars 610 forks source link

Automated cron emails not setting links to the page inside the email's body #515

Closed mv3ntur4 closed 4 years ago

mv3ntur4 commented 4 years ago
Q A
Bug report? [x ]
Feature request? [ ]
Support request? [ ]

Hi @cocolabssas,

It seems that the automated emails received from cron don't set their links, ie. when i click the links that are in the body's email they don't have any destination setup so it does not do anything, for example: I can click to the listing's link but it does not go to the page because the href property is empty, that only happends with the automated emails sent by cron.

You can run manually the cron job for example: php $instalation_path/Symfony/bin/console cocorico:bookings:alertExpiring --env=prod

Maybe I should add some environment variables to it?

Thank you in advance for your support.

mv3ntur4 commented 4 years ago

Yes I did the parameters.yml set up and it worked Atli!

Thank you very much, I am going to close the ticket and if you let me i will give your solution and a reference to you.

Greetings!

El 27/09/2020 a las 03:05 p. m., Atli Johannsson escribió:

Don't know if I am understanding correctly but here are two pointers from me:

1.

You can edit text sent by selecting cocoric_mail on
/admin/__translations (See
https://github.com/Cocolabs-SAS/cocorico/blob/master/doc/translations.md).

2.

If the links are not sending you to the right URL you need to edit
cocorico.assets_base_urls to match your URL in
app/config/parameters.yml.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Cocolabs-SAS/cocorico/issues/515#issuecomment-699681825, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANE2DBKXHYBSVXKM2CKF2ATSH6LHTANCNFSM4RYUXKEQ.

mv3ntur4 commented 4 years ago

This was my working setup: cocorico.assets_base_urls: 'http://yourdomain.com' router.request_context.host: 'yourdomain.com' router.request_context.scheme: 'http'
router.request_context.base_url: '' Thank you @atlijohanns