-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Wrong permalink when running RocketChat in subdir #10732
Copy link
Copy link
Closed
Labels
area: ui/uxRelated to UI/UX, frontend code, accessibility, and user interactionRelated to UI/UX, frontend code, accessibility, and user interactiontype: bug
Milestone
Description
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:
- start docker with environment: ROOT_URL=http://localhost:3000/chat
- login and post any message in general channel
- 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:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: ui/uxRelated to UI/UX, frontend code, accessibility, and user interactionRelated to UI/UX, frontend code, accessibility, and user interactiontype: bug