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
if (link.origin === s.rtrim(Meteor.absoluteUrl(), '/') && /msg=([a-zA-Z0-9]+)/.test(link.search))
Both link.origin and link.search are undefined, so this check is false and does not even get to the following check:
if (RocketChat.Layout.isEmbedded()) {
which is also returning false. All three of these checks should be true, which would result in:
return fireGlobalEvent('click-message-link',
but as it stands it never gets there to send the message, and instead the message is propagated and the browser just does its thing (opens link in new tab). Perhaps link.baseURI should be used for that check in place of link.origin, if it is necessary at all. I'm not sure what the purpose of testing link.search is.
Activity
mikewakid commentedon Aug 25, 2017
I am having the same issue as the poster with the click events not triggering, the others are working as expected.
kieran-rocks commentedon Aug 25, 2017
+1
kieran-rocks commentedon Oct 5, 2017
Looks like the problem is in Rocket.Chat/packages/rocketchat-ui-master/client/main.js:
@karlprieb #6498
if (link.origin === s.rtrim(Meteor.absoluteUrl(), '/') && /msg=([a-zA-Z0-9]+)/.test(link.search))Both
link.originandlink.searchare undefined, so this check is false and does not even get to the following check:if (RocketChat.Layout.isEmbedded()) {which is also returning false. All three of these checks should be true, which would result in:
return fireGlobalEvent('click-message-link',but as it stands it never gets there to send the message, and instead the message is propagated and the browser just does its thing (opens link in new tab). Perhaps
link.baseURIshould be used for that check in place oflink.origin, if it is necessary at all. I'm not sure what the purpose of testinglink.searchis.Fred-grais commentedon Jan 13, 2019
still an issue on the latest version
gabriellsh commentedon Sep 19, 2023
Fixed in #16771