gitlabhq/gitlabhq — Issue #440: Incorrect link_to Resque path
Author: parshikov
Created: 2012-02-22 10:50:18+00:00
State: open

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

```ruby
= link_to "Resque", "/info/resque"
```
The code above doesn't know about the deployment into a sub URI ([by this manual](http://www.modrails.com/documentation/Users%20guide%20Apache.html#deploying_rack_to_sub_uri)).

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.

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