Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong permalink when running RocketChat in subdir #10732

Closed
thaim opened this issue May 10, 2018 · 5 comments
Closed

Wrong permalink when running RocketChat in subdir #10732

thaim opened this issue May 10, 2018 · 5 comments

Comments

@thaim
Copy link

thaim commented May 10, 2018

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:

@ura14h
Copy link
Contributor

ura14h commented Jun 1, 2018

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.

@jpowie01
Copy link

jpowie01 commented Jun 7, 2018

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

@serviceman
Copy link

serviceman commented Jun 22, 2018

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.

@BanHammor
Copy link

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.

@ura14h
Copy link
Contributor

ura14h commented Aug 28, 2018

Not been solved all. See #11781 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants