Skip to content

[REGRESSION] Malformed urls for avatar icons when hosted from a subdirectory #11057

@bennlich

Description

@bennlich

Description:

When rocket chat is hosted from the /chat subdirectory. Avatar icons get requested from broken urls like:

https://my.domain/chat/chat/avatar/%40general?_dc=undefined

I.e. the subdirectory is repeated in the request URL. Seems similar to #10029.

This seems to be a regression. I did not have this problem until I upgraded to 0.65.1 from 0.62.2.

Server Setup Information:

  • Version of Rocket.Chat Server: 0.65.1
  • Operating System: Ubuntu 14.04
  • Deployment Method(snap/docker/tar/etc): tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog: ?
  • Node Version: 8.9.1
  • mongoDB Version: 3.6.2

Expected behavior:

Client (web and electron) makes successful request to https://my.domain/chat/avatar/%40general?_dc=undefined.

Actual behavior:

Client (web and electron) makes failed request to https://my.domain/chat/chat/avatar/%40general?_dc=undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions