Message Links in Get Link and E-mail Offline Message Notification broken

Description

Hello, the links that are generated for messages with “Get Link” is broken after updating RocketChat from version 3.9.3 to 3.9.7 via snap.

Following the generated link with “Get Link” appears the error message “No channel with name ‘test’ was found” in overlay to my channel #test. This occurs with links from private groups and private chat as well.

From the link obtained, https://rc.mydomain.com.br/channel/test?msg=XXXXXXXXXX, when I remove the parameter msg (msg=XXXXXXXXXX) I don’t have the error message.

This problem has an influence in email notifications to messages sent offline since the links in the notification and those obtained via ‘Get Link’ follow the same pattern.

Edit: If I paste the link into a RocketChat conversation and click on it, it works. The problem is when it comes from outside of RocketChat or copied directly into the address bar of the browser.

Anyone else with this problem? Any ideas how to solve?

Server Setup Information

  • Version of Rocket.Chat Server: 3.9.7
  • Operating System: Ubuntu 18.04.2 LTS
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: v12.18.4
  • MongoDB Version: 3.6.14
  • Proxy: ngnix
  • Firewalls involved: no

Any additional Information