Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

CSS link is an absolute URL breaking layout #75

Open
windware-ono opened this issue Jan 25, 2018 · 1 comment
Open

CSS link is an absolute URL breaking layout #75

windware-ono opened this issue Jan 25, 2018 · 1 comment

Comments

@windware-ono
Copy link
Contributor

Summary

If I run the instance on port 3000 and access it there without a reverse proxy, one of the CSS (/assets/css/lib.css) is linked as an absolute URL, which breaks the linking if the host name is not exactly specified including the port in .env for APP_URL. (ex : http://my.domain:3000/, instead of just http://my.domain/).

Steps to Reproduce

  1. Install as normal.
  2. node app
  3. Access directly without a reverse proxy http://my.domain:3000/

Additional info

  • Postleaf version: 1.0.0-beta.1
  • Node version: 8.9.4
  • Affected browsers:
  • Operating system: Ubuntu 16.04
@claviska
Copy link
Member

This is a side effect of running Postleaf locally (it's intended to run behind a proxy such as Nginx). If you're doing local dev, the [current] requirement is to put the fully URL (including port) in your .env file.

Asset URLs could probably be changed to schemaless URLs. Aside from that, I don't see how the app could know what the proper URL should be.

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

No branches or pull requests

2 participants