padrino / padrino-framework

Padrino is a full-stack ruby framework built upon Sinatra.

Home Page:http://www.padrinorb.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Asset fetch fails with 404 when using relative url

mistergibson opened this issue · comments

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