sferik/rails_admin — Issue #1025: Routing issue
Author: conorsheehan
Created: 2012-03-05 22:07:00+00:00
State: open

My application is not mounted at the site root, but instead lies in a subfolder (e.g. www.website.com/railsapp/). I installed RailsAdmin, which seems to be only partly working with correct routing. Most of the pages under admin are correct, but the following are some examples of issues:
- Login page - When not logged in, you are redirected to the wrong login page (www.website.com/users/sign_in, not www.website.com/railsapp/users/sign_in)
- Background images - All of the icons are broken, because the CSS is calling images from the site root (www.website.com/assets/..., not www.website.com/railsapp/assets/...)
- Uploaded images - When I upload files and images, their URLs get saved as being located at the site root.

Any ideas?