iachat/app/javascript/dashboard
Sivin Varghese b429ce0ad5
fix: Prevent template variables from becoming links (#10725)
# Pull Request Template

## Description

**Issue**
This PR fixes template variables in messages (e.g., {{customer.name}})
that were being incorrectly converted to clickable links by the
`MessageFormatter's linkify` functionality. This caused formatting
issues and broken links.

**Solution**
Added a `linkify` parameter to `MessageFormatter` to optionally disable
link conversion

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

**Screenshots**

**Before**
<img width="1012" alt="image"
src="https://github.com/user-attachments/assets/70abb238-b4d9-439d-9e51-c7513cf482fb"
/>


**After**
<img width="1012" alt="image"
src="https://github.com/user-attachments/assets/387acb74-674e-4b26-85cc-2d7190d256b1"
/>




## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules
2025-01-23 18:18:14 +05:30
..
api feat: Add assistant filter support to documents page (#10697) 2025-01-15 21:41:07 -08:00
assets chore(v4): Update colors (#10700) 2025-01-16 15:27:23 +05:30
components chore: Adds loader for attachment download buttons (#10748) 2025-01-22 18:29:57 +05:30
components-next fix: Prevent template variables from becoming links (#10725) 2025-01-23 18:18:14 +05:30
composables fix: sentry issues (#10695) 2025-01-16 15:49:48 +05:30
constants feat: update colors for v4 (#10660) 2025-01-15 17:13:03 +05:30
helper feat: add prompt suggestions and June events (#10726) 2025-01-21 22:52:42 +05:30
i18n feat: add prompt suggestions and June events (#10726) 2025-01-21 22:52:42 +05:30
mixins chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
modules feat: update colors for v4 (#10660) 2025-01-15 17:13:03 +05:30
routes fix: Vite dev build fails due to sass (#10716) 2025-01-20 14:34:33 +05:30
store chore: Help center improvements (#10712) 2025-01-21 13:50:01 +05:30
App.vue fix: Resolve accountId from the route, initialize route-sync before the app is loaded (#10245) 2024-10-08 09:25:51 -07:00
featureFlags.js feat: Add new sidebar for Chatwoot V4 (#10291) 2024-10-23 18:32:37 -07:00