Asset fetch fails with 404 when using relative url
mistergibson opened this issue · comments
G. Gibson commented
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
- mount your base app at a relative_url (e.g. "/myapp")
- use stylesheet_link_tag :site (specifying the site.css file) in your layout.erb file.
- 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