Skip to content

bug: links are not rendered correctly in message content #2560

Open
@elhamzaouiaymen

Description

@elhamzaouiaymen

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstatus:confirmedDescribed issue has been reproduced by the repo maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions