You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can see from the code that it's split by coma when parsing the content. when we provide the URL list we use md format URLs separated by comma. when the title contains a comma the library is unable to handle the list correctly since when it splitted the md format URL is corrupted, for example: some title,some,other,title in this example, we can see when the URL list is handled and splitter by comma the second URL is corrupted as it's splitting the title. To handle that we replace the comma sign with , and that's the reason why we see those , symbols.
Reproduction/example
none
Steps to reproduce
Ask a query for any topic that uses a comma in the title.
The text was updated successfully, but these errors were encountered:
Daniel-Schulz-Private
changed the title
[Bug]: Fix "," in search result titles
[Bug]: Fix "," in search result titles of ai-chat
Feb 17, 2025
To clarify... the &comma is not in the ai-chat-component the problem is that if a URL contains a comma in the title... the CLABSLinkListElement will not handle the link list correctly as its split by comma.. and in that case the URL list will be corrupted.
For example: [some title](https://someurl.com/),[some,other,title](https://someotherurl.com/)
Browser
Chrome, Safari, Firefox
Package version
0.15.0
React version
^1.66.0
Description
Ideally these titles wouldn't use commas at a all, but I've seen this pop up a few times now where we see , in the search result topic title:

After investigation, the bug is in the ai-chat-component lib.
carbon-labs/packages/web-components/src/components/chat/components/linkListElement/src/linkListElement.ts
Line 150 in 407e472
We can see from the code that it's split by coma when parsing the content. when we provide the URL list we use md format URLs separated by comma. when the title contains a comma the library is unable to handle the list correctly since when it splitted the md format URL is corrupted, for example: some title,some,other,title in this example, we can see when the URL list is handled and splitter by comma the second URL is corrupted as it's splitting the title. To handle that we replace the comma sign with , and that's the reason why we see those , symbols.
Reproduction/example
none
Steps to reproduce
Ask a query for any topic that uses a comma in the title.
Suggested Severity
None
Application/PAL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: