Skip to content

Gatherings chat is mangling urls with [] in them

Summary

Gathering chat is parsing URLs incorrectly.

Steps to reproduce

Go to a gathering. https://www.minds.com/groups/profile/569521254306951168/feed

Find a link with brackets in it

https://gitlab.com/groups/minds/-/issues?scope=all&utf8=%E2%9C%93&state=opened&label_name[

Platform information

Cross-platform web

What is the current bug behavior?

The chat displays the full link, but when click on it, the regex is ignoring the closing bracket and beyond. The regex is only looking for spaces between the brackets

What is the expected correct behavior?

URL should post without issue

Relevant logs and/or screenshots

(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Edited by Bill Ottman