Hello,
Thank you for contacting the support and we regret the inconvenience caused.
Could you share the script you’re adding so that we can investigate further?
Looking forward to helping you.
Thank you.
https://docs.google.com/document/d/1jv84GdZlX4n2QpBU5K4Yp7IICA3-FrENHw52UVtlgsU/edit?usp=sharing it wont let me copy and paste code so ive put it in google doc instead. CAN you please let me know how we can code a new canonical tag so it stops pointing to the wrong one.
Hello,
Since you are using Rank Math you should instead use the filters from our plugin to handle the custom generation of canonical on your pages.
Here’s the filter that should be used to handle the canonical: https://rankmath.com/kb/filters-hooks-api-developer/#change-canonical-url
Hope this helps solve your issues.
Don’t hesitate to get in touch if you have any other questions.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.