Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
elhamzaouiaymen opened this issue Nov 13, 2024 · 3 comments
Open

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

elhamzaouiaymen opened this issue Nov 13, 2024 · 3 comments
Labels
bug Something isn't working status:confirmed Described issue has been reproduced by the repo maintainer

Comments

@elhamzaouiaymen
Copy link

elhamzaouiaymen commented Nov 13, 2024

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 elhamzaouiaymen added bug Something isn't working status: unconfirmed labels Nov 13, 2024
@MartinCupela MartinCupela added status:confirmed Described issue has been reproduced by the repo maintainer and removed status: unconfirmed labels Nov 13, 2024
@MartinCupela
Copy link
Contributor

@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

@elhamzaouiaymen
Copy link
Author

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

@MartinCupela
Copy link
Contributor

I believe it could be solved this quarter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status:confirmed Described issue has been reproduced by the repo maintainer
Projects
None yet
Development

No branches or pull requests

2 participants