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
Setting host with subpath doesn't work #422
Comments
I just realised the pages are making the request from JS and they all point to /. Maybe a prefix setting could be a solution? If I can figure it out I might do a PR. |
...or I might just redirect every request that WriteFreely can make with nginx. |
Both of these ways are quite hacky and I don't really want to use them. I noticed that static resources actually follow the path I want, so those show up correctly. (On the login page, in the block every url is correct) |
Thanks for starting this discussion! It's true that WF was never designed to work on a path, so indeed this custom configuration is going to be an uphill battle. If you'd like to see this built in to the software, please feel free to start a discussion on our development forum so we can figure out what needs to be done and coordinate any work on this! |
Was a discussion on this ever opened? I was also trying to put it under a path from my main web domain (at /blog) and had no luck when I found this issue. |
Describe the bug
The service is behind an nginx reverse proxy which tries to use a subpath, like this:
Even if I set the
Every link redirects to
https://example.com/[actual path]
instead ofhttps://example.com/writefreely/[actual path]
Steps to reproduce (if necessary)
systemctl start nginx
systemctl start writefreely
example.com/writefreely
Expected behavior
I get redirected to
https://example.com/writefreely/[actual path]
Application configuration
Version or last commit: v0.12.0
The text was updated successfully, but these errors were encountered: