Skip to content

Use Meteor.absoluteUrl() to handle being deployed on a virtual-host.com/folder/ #335

@ogirardot

Description

@ogirardot

I'm kind of struggling trying to get it working on a server name like that http://my.domain/rocket.chat/
More precisely, these fonts/images are trying to load from / instead of ROOT_URL :

  • /fonts/roboto-regular-webfont.woff2
  • /fonts/roboto-regular-webfont.woff
  • /images/logo/favicon-16x16.png?v=3
  • /fonts/roboto-regular-webfont.ttf

Which is not critical but the FlowRouter does not behave as well making it impossible to use the app :

There is no route for the path: /rocket.chat/

is the error I get, and the meteor-timesync client is trying to use /_timesync too (but I managed to redirect using nginx...).

My set-up is to use the docker container and a nginx reverse proxy.
I'm not exactly sure what to do to fix the client side...

Regards,

Olivier.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions