Incorrect link_to Resque path #440

Closed
parshikov opened this Issue Feb 22, 2012 · 2 comments

Comments

Projects
None yet
4 participants

In app/views/layouts/admin.html.haml file.

= link_to "Resque", "/info/resque"

The code above doesn't know about the deployment into a sub URI (by this manual).

I have gitlab (under apache2) in www.example.com/gitlab but admin page have Resque link to www.example.com/info/resque instead of www.example.com/gitlab/info/resque

Now file is modified manually and contain the code below as temporary solution but I think it isn't a good way.

= link_to "Resque", "/#{ENV['RAILS_RELATIVE_URL_ROOT']}/info/resque"

This should be done in app/views/admin/dashboard/index.html.haml too. I've testet with #{ENV['RAILS_RELATIVE_URL_ROOT']} and it dosn't work for me but an static entry (like /gitlab/info/resque).

Thanks guys for a nice project!

mpaluru commented Jun 30, 2012

I have the same issue when I installed gitlab to http://www.myserver.com/gitlab

File does not exist: /var/www/favicon.ico
File does not exist: /var/www/assets, referer: http://myserver.com/gitlab

randx closed this Aug 28, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment