title: Rails : not routing properly, redirect back to another controller
body: <p>I have a page on the website, which has lots of anchor link eg <code>#menu</code> | <code>#sauces</code> etc</p>
  
  <p>On the page itself the links work fine, its brilliant. 
  However when I am on a different controller/view, The links do not take me back to the main controller, and to the anchor point clicked.</p>
  
  <p>here is an example of one anchor link, which is in the header (which is on ALL controller views)</p>
  
  <blockquote>
  <pre><code>    &lt;%= link_to '#main', :id =&gt; 'menu_link' do %&gt;
      &lt;li&gt;Menu&lt;/li&gt;
      &lt;% end %&gt;
  </code></pre>
  </blockquote>
  
  <p>That is in <code>:controller =&gt; "main", :action =&gt; "index"</code></p>
  
  <p>When I am in another controller, for example my locations controller,
  The links become like this <code>localhost:3000/locations#menu</code></p>
  
  <p>It should really be <code>localhost:3000/#menu</code></p>
  
  <p>The root is set to go to the main controller and index action.</p>
  
  <p>Here is my routes.rb file</p>
  
  <blockquote>
  <pre><code> root :to =&gt; "main#index"
     match 'admin', :to =&gt; 'access#admin_index'
     match 'locations', :to =&gt; 'ranch_locations#locations'
     match ':controller(/:action(/:id))(.:format)'
  </code></pre>
  </blockquote>