# URL Links from tokens turn into x-webdoc

**URL:** <https://forum.mautic.org/t/url-links-from-tokens-turn-into-x-webdoc/36788>\
**Category:** Mautic 5 Install/Upgrade Support\
**Tags:** email, mautic-5\
**Created:** [October 28, 2025, 5:51am UTC](https://forum.mautic.org/t/url-links-from-tokens-turn-into-x-webdoc/36788 "2025-10-28T05:51:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jodywhitesides](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jodywhitesides/32/12645_2.png) [@jodywhitesides](https://forum.mautic.org/u/jodywhitesides)\
**Post date:** [October 28, 2025, 5:51am UTC](https://forum.mautic.org/t/url-links-from-tokens-turn-into-x-webdoc/36788/1 "2025-10-28T05:51:27Z")

</div>

**Your software**  
My Mautic version is: 5.1  
My PHP version is: 8.1  
My Database type and version is: MariaDB Operator

**Your problem**  
My problem is: Emails from Mautic are turning URLs into x-webdoc code instead of keeping https.

These errors are showing in the log: I’m not getting any errors. It’s just not sending the URLs correctly in the emails when it’s from a token.

Steps I have tried to fix the problem: I have tried turning off link tracking and email tracking, but that has not solved the issue. Also that obviously defeats one of the purposes of using Mautic. Opening a test in the web browser shows the links properly. So something in the way Mautic sends the emails is messing up the links.

---

<div class="post-metadata">

**Author:** ![jodywhitesides](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jodywhitesides/32/12645_2.png) [@jodywhitesides](https://forum.mautic.org/u/jodywhitesides)\
**Post date:** [October 29, 2025, 4:11am UTC](https://forum.mautic.org/t/url-links-from-tokens-turn-into-x-webdoc/36788/2 "2025-10-29T04:11:50Z")

</div>

I have since updated to v5.2.7 and this is no longer an issue. My links are behaving as expected.
