Rocket.chat: Wrong permalink when running RocketChat in subdir

Created on 10 May 2018  路  5Comments  路  Source: RocketChat/Rocket.Chat

Description:

When running RocketChat in subdir, permalink get wrong URL.

Server Setup Information:

  • Version of Rocket.Chat Server: 0.64.1
  • Operating System: Ubuntu16.04.4
  • Deployment Method(snap/docker/tar/etc): docker (image: rocketchat/rocket.chat:0.64.1)
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • Node Version:
  • mongoDB Version:

Steps to Reproduce:

  1. start docker with environment: ROOT_URL=http://localhost:3000/chat
  2. login and post any message in general channel
  3. select permalink for the message

Expected behavior:

permalink should be "http://hostname/chat/channel/general?msg=..."

Actual behavior:

permalink shows like "http://hostname/chat/chat/channel/general?msg=...."

(extra subdir "/chat/")

links to any channel in Directory also wrong as above

Relevant logs:

uux bug

Most helpful comment

I have the same bug - links in /chat/directory are all duplicated: /chat/chat/general and so on.
I'm using Apache with the https://rocket.chat/docs/installation/manual-installation/running-in-a-sub-folder/ configuration.

All 5 comments

I use 0.65.1 with sub directory. (e.g. /apps/chat/ )
To open a channel from the left side bar works fine. This link is /apps/chat/channel/general.
But to open a channel from directory page is fail. I seem URL in directory page is incorrect. This broken link is /apps/chat/apps/chat/channel/general.

I can agree with your findings. I've also found out that there are some issues with /api/v1/commands.list and /api/apps/languages endpoints. They seem to not have added my subdirectory :(

Mobile clients work well!

RocketChat version: 0.65.1

I can confirm all of these errors. Is there any ETA for when they will be fixed. I can't use Rocket Chat until it is fixed. I am using a manual install.

I have the same bug - links in /chat/directory are all duplicated: /chat/chat/general and so on.
I'm using Apache with the https://rocket.chat/docs/installation/manual-installation/running-in-a-sub-folder/ configuration.

Not been solved all. See #11781 .

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Buzzele picture Buzzele  路  3Comments

karlprieb picture karlprieb  路  3Comments

mddvul22 picture mddvul22  路  3Comments

ghost picture ghost  路  3Comments

engelgabriel picture engelgabriel  路  3Comments