Skip to content
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

Asset fetch fails with 404 when using relative url #2215

Open
mistergibson opened this issue Oct 1, 2019 · 0 comments
Open

Asset fetch fails with 404 when using relative url #2215

mistergibson opened this issue Oct 1, 2019 · 0 comments

Comments

@mistergibson
Copy link

mistergibson commented Oct 1, 2019

Do you want to request a feature or report a bug?

bug

What is the current behavior?

I am running padrino at a relative url. the page loads, but the assets do not, even though the proper path is defined. I corrected this (as a workaround) by creating a symlink in public of the relative_url prefix pointing back to public

Please provide the steps to reproduce

  1. mount your base app at a relative_url (e.g. "/myapp")
  2. use stylesheet_link_tag :site (specifying the site.css file) in your layout.erb file.
  3. get a 404 error for the asset.

What is the expected behavior?

Assets load from https://(relative_url)/path/to/asset.

Which versions of Ruby, Padrino, Sinatra, Rack, OS are you using? Did this work in previous versions?

Padrino 14.0.4 with Webrick under JRuby 9.2.8.0

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

No branches or pull requests

1 participant