Rocket.chat: Links for the same domain (e.g links to uploaded files) are broken

Created on 26 Oct 2018  路  4Comments  路  Source: RocketChat/Rocket.Chat

Description:

Links for uploaded files in any Rocket.Chat room don't refer to the files and trigger a 404 page which can't be dismissed without going back and refreshing the page.

Steps to reproduce:

  1. Open any room;
  2. Upload a file;
  3. Copy the link address of uploaded file, paste it into message box and send it;
  4. Click in the new message's link.

Expected behavior:

A download dialog or an image preview is shown.

Actual behavior:

The following page is shown and can't be dismissed:

captura de tela 2018-10-26 as 13 37 05

Server Setup Information:

  • Version of Rocket.Chat Server: 0.71.0-develop
  • Operating System: MacOS 10.14 (Mojave)
  • Deployment Method: source code
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: 8.11.3 - x64
  • MongoDB Version: 3.4
file sharing uux bug

Most helpful comment

The file upload isn't needed to reproduce this. Every link on the same domain as the chat seems to do the same.

All 4 comments

The file upload isn't needed to reproduce this. Every link on the same domain as the chat seems to do the same.

It seems to not be replacing spaces with %20, I have had several people encounter this issue, I can also replicate this in user to user messages.

Might be fixable by uri-encoding the links and the copy link

I am trying to work on this

Closed by #13756.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marceloschmidt picture marceloschmidt  路  3Comments

danpospisil picture danpospisil  路  3Comments

karlprieb picture karlprieb  路  3Comments

sta-szek picture sta-szek  路  3Comments

Buzzele picture Buzzele  路  3Comments