title: link_to omits redmine root
body: <p>I'm following a <a href="http://www.gogolek.co.uk/blog/2012/09/writing-redmine-2-x-plugins-tutorial/" rel="nofollow">Redmine Plugin tutorial</a> and the author uses the following code in a hook, which is called from within a view, which:</p>
  
  <pre><code>def load_issues(count)
      (...)
      issues = Issue.find(:all, :limit =&gt; count, :order =&gt; "created_on DESC")
  
      issues.each do |issue|
          html = "&lt;/p&gt; &lt;li&gt; 
                 #{ link_to h(truncate(issue.subject, :length =&gt; 60)), :controller =&gt; 'issues', :action =&gt; 'show', :id =&gt; issue }
                 &lt;/li&gt; &lt;p&gt;"
      end
      return html
  end
  </code></pre>
  
  <p>The returned HTML is rendered on a page. My Bitnami Redmine installation's root is <code>http://localhost/redmine</code> 
  The problem is with the URL generated by <code>link_to</code>:</p>
  
  <pre><code>&lt;a href="/issues/2"&gt;feature 1&lt;/a&gt;
  </code></pre>
  
  <p>when I'm expecting something like this:</p>
  
  <pre><code>&lt;a href="/redmine/issues/2"&gt;feature 1&lt;/a&gt;
  </code></pre>
  
  <p>Other links generated by core Redmine are aware of the root and work fine, so something is missing from this implementation. I looked at some of the code in core Redmine and the <code>link_to</code> calls look just like this one though, with nothing extra added. </p>