Jump to content

Email reply link broken (translation issue?)


Jimwin

Recommended Posts

Hey,

I have the issue that if I reply to a customer service thread, the customer gets sent a broken link via mail:

188609456_Screenshotfrom2023-02-2715-27-38.thumb.png.52d15f4a9837e3bb2e61d500b793c934.png

The text says:

"Please do not reply directly to this email, we will not receive it. In order to reply, click on the following link: https://[XXX].com/kontakt?id_customer_thread=57&token=ao1Xk72qs0hp"

Opening the link results in:

1513819841_Screenshotfrom2023-02-2715-31-54.thumb.png.6fa335e9b0ca2f64d3c61da095c47529.png

The thing is, my backend is set to German and the frontend to English. So the customers type into the contact form https://[XXX].com/contact-us, but the link in the reply mail is https://[XXX].com/kontakt?...

Playing around with the URL hasn't gotten me anywhere, [XXX].com/kontakt, [XXX].com/contact, [XXX].com/contact-us, ...

The thread id and token exist in the database (ps_customer_thread) and are correct.

 

Where can I find the files logging this 404 error? Can I check what the correct URLs would look like?

 

System:

Ubuntu 22.04, Apache2, MySQL

Prestashop 1.7.8.7

 

Link to comment
Share on other sites

So I've done a bit more digging and the answer seems to be coming from this template:

https://github.com/001matt/prestashop/blob/master/mails/en/reply_msg.html

 

With the {link} being extracted from here:

https://github.com/001matt/prestashop/blob/master/controllers/admin/AdminCustomerThreadsController.php#L402

'{link}' => Tools::url(
	$this->context->link->getPageLink('contact', true),
	'id_customer_thread='.(int)$ct->id.'&token='.$ct->token
),

 

This implies that https://[XXX].com/contact-us?id_customer_thread=57&token=ao1Xk72qs0hp should be working?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...