Chat messages can't preserve UNC-style Windows paths (e.g., \\server\share\file.docx) #22092

Open
opened 2026-02-21 20:15:44 -05:00 by yindo · 1 comment
Owner

Originally created by @WTW0313 on GitHub (Feb 5, 2026).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.12.0

Cloud or Self Hosted

Cloud

Steps to reproduce

  1. Set Conversation Opener in features
    Image

  2. Preview chatflow

✔️ Expected Behavior

UNC-style Windows file paths (e.g., \\urltest\text\doc.doc) should be rendered verbatim.

Actual Behavior

Image
Originally created by @WTW0313 on GitHub (Feb 5, 2026). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.12.0 ### Cloud or Self Hosted Cloud ### Steps to reproduce 1. Set `Conversation Opener` in features <img width="1338" height="822" alt="Image" src="https://github.com/user-attachments/assets/f6a2da59-5b50-4cab-a211-267bc3248d8f" /> 2. Preview chatflow ### ✔️ Expected Behavior UNC-style Windows file paths (e.g., `\\urltest\text\doc.doc`) should be rendered verbatim. ### ❌ Actual Behavior <img width="1044" height="1488" alt="Image" src="https://github.com/user-attachments/assets/0ecd114f-47dd-41db-a47b-64ea0eb46e1b" />
yindo added the 🐞 bugcloud labels 2026-02-21 20:15:44 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 5, 2026):

This is a known issue tracked in the project. The chat rendering logic tries to detect UNC-style Windows paths and wraps them in backticks to preserve backslashes in Markdown, but this doesn't always work as expected for conversation openers or certain message types. As a workaround, try manually wrapping your UNC path in backticks (for example, `\\server\share\file.docx`) in the Conversation Opener prompt—this should force the chat UI to render the path verbatim with double backslashes reference. The issue is being tracked for a more robust fix.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Feb 5, 2026): <!-- Answer --> This is a known issue tracked in the project. The chat rendering logic tries to detect UNC-style Windows paths and wraps them in backticks to preserve backslashes in Markdown, but this doesn't always work as expected for conversation openers or certain message types. As a workaround, try manually wrapping your UNC path in backticks (for example, \`\\\\server\\share\\file.docx\`) in the Conversation Opener prompt—this should force the chat UI to render the path verbatim with double backslashes [reference](https://github.com/langgenius/dify/blob/9e54f086dc4bafc0e0e68f554daa4e5b04fb2c33/web/app/components/base/chat/chat/answer/basic-content.tsx#L21-L34). The issue is being tracked for a more robust fix. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/1b999d02-b47e-4905-a64a-04d1182dbfb2?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/1b999d02-b47e-4905-a64a-04d1182dbfb2?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/1b999d02-b47e-4905-a64a-04d1182dbfb2?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/1b999d02-b47e-4905-a64a-04d1182dbfb2?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/1b999d02-b47e-4905-a64a-04d1182dbfb2?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/1b999d02-b47e-4905-a64a-04d1182dbfb2?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/1b999d02-b47e-4905-a64a-04d1182dbfb2?feedback_type=other)</sup> [![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&nbsp;[![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20is%20a%20known%20issue%20tracked%20in%20the%20project.%20The%20chat%20rendering%20logic%20tries%20to%20detect%20UNC-style%20Windows%20paths%20and%20wraps%20them%20in%20backticks%20to%20preserve%20backslashes%20in%20Markdown%2C%20but%20this%20doesn%27t%20always%20work%20as%20expected%20for%20conversation%20openers%20or%20certain%20message%20types.%20As%20a%20workaround%2C%20try%20manually%20wrapping%20your%20UNC%20path%20in%20backticks%20%28for%20example%2C%20%5C%60%5C%5C%5C%5Cserver%5C%5Cshare%5C%5Cfile.docx%5C%60%29%20in%20the%20Conversation%20Opener%20prompt%E2%80%94this%20should%20force%20the%20chat%20UI%20to%20render%20the%20path%20verbatim%20with%20double%20backslashes%C2%A0%5Breference%5D%28https%3A//github.com/langgenius/dify/blob/9e54f086dc4bafc0e0e68f554daa4e5b04fb2c33/web/app/components/base/chat/chat/answer/basic-content.tsx%23L21-L34%29.%20The%20issue%20is%20being%20tracked%20for%20a%20more%20robust%20fix.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/31992)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#22092