Jimwin Posted February 27, 2023 Share Posted February 27, 2023 Hey, I have the issue that if I reply to a customer service thread, the customer gets sent a broken link via mail: 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: 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 More sharing options...
Jimwin Posted March 6, 2023 Author Share Posted March 6, 2023 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now