FIX: ensures we don't keep dots in last part of channel URL (#512)

FIX: ensures we don’t keep dots in last part of channel URL (#512)

diff --git a/assets/javascripts/discourse/components/topic-chat-float.js b/assets/javascripts/discourse/components/topic-chat-float.js
index 616a28c..3d320a6 100644
--- a/assets/javascripts/discourse/components/topic-chat-float.js
+++ b/assets/javascripts/discourse/components/topic-chat-float.js
@@ -355,8 +355,9 @@ export default Component.extend({
     }
 
     if (this.currentUser.chat_isolated) {
+      const safeTitle = channel.title.replace(/\./g, "-");
       return window
-        .open(getURL(`/chat/channel/${channel.id}/${channel.title}`), "_blank")
+        .open(getURL(`/chat/channel/${channel.id}/${safeTitle}`), "_blank")
         .focus();
     }
 

GitHub sha: 7b1be9c790343dc36fd1a249eabf05f4cb1b26cf

This commit appears in #512 which was approved by jomaxro. It was merged by jjaffeux.