stream-chat-react icon indicating copy to clipboard operation
stream-chat-react copied to clipboard

bug: links are not rendered correctly in message content

Open elhamzaouiaymen opened this issue 1 year ago • 5 comments

Describe the bug

When sending multipe links in one message, they don't appear correctly in the message list.

To Reproduce

Steps to reproduce the behavior:

  1. Go to getstream chat demo page
  2. Paste the following message (containing links) --Message starts here-- copilot.com copilot.com/guide copilot.com/about --Message ends here--
  3. Notice that the routes do not appear as part of the link, they shows as they are plain text.
  4. One more thing, you will notice that if you copy the sent message you will get this output
[copilot.com](http://copilot.com/)
[copilot.com](http://copilot.com/)/guide  // here the /guide should be between the parentheses.
[copilot.com](http://copilot.com/)/about // same here

Expected behavior

copilot.com copilot.com/guide copilot.com/about

Screenshots

image

Package version

  • stream-chat-react: 11.22.0
  • stream-chat-js: ^8.40.0

Desktop (please complete the following information):

  • OS: Version 15.1 (24B83)
  • Browser chrome
  • Version 130.0.6723.117 (Official Build) (arm64)

elhamzaouiaymen avatar Nov 13 '24 16:11 elhamzaouiaymen

@elhamzaouiaymen thank you for reporting this. The issue seems to be caused by the newline characters interacting with path forward slashes. We will take a look

MartinCupela avatar Nov 13 '24 16:11 MartinCupela

@MartinCupela do you have an estimated time for when this issue will be resolved?

elhamzaouiaymen avatar Nov 14 '24 10:11 elhamzaouiaymen

I believe it could be solved this quarter

MartinCupela avatar Nov 14 '24 10:11 MartinCupela

@MartinCupela Any updates on this?

elhamzaouiaymen avatar Jan 31 '25 11:01 elhamzaouiaymen

@MartinCupela please keep me posted

minhth1529 avatar May 21 '25 02:05 minhth1529

:tada: This issue has been resolved in version 13.2.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

stream-ci-bot avatar Jul 11 '25 13:07 stream-ci-bot