title: SilverStripe - Prevent HTML Bookmarks from returning to homepage
body: <p>I have been trying to figure out how to get conventional HTML bookmarks to work on a SilverStripe site. I have them working somewhat correctly in that they do navigate to the correct divs. However, all bookmarks are navigating to the proper section on homepage, which is incorrect.</p>
  
  <p>For example, I have a button at the bottom of each page in the footer that is meant to take the user back to the top of the page:</p>
  
  <pre><code>&lt;footer class="footer"&gt;
      &lt;a href="#top" class="toTop"&gt;&lt;i class="fa fa-angle-up"&gt;&lt;/i&gt;&lt;/a&gt;
      &lt;div class="grid-container"&gt;
          &lt;div class="grid-100 mobile-grid-100 tablet-grid-100"&gt;
              &lt;h3&gt;Back to top&lt;/h3&gt;
                &lt;span class="copyright"&gt;&amp;copy; $Now.Year&lt;br&gt;&lt;/span&gt;&lt;/div&gt;
      &lt;/div&gt;&lt;!-- close container --&gt;
  &lt;/footer&gt;
  </code></pre>
  
  <p>However, when clicking the "Back to Top" button on a subpage, the user is taken to the top of the home page. The same thing happens with the "Contact Us" section links--you are always taken back to the homepage's "Contact Us" section. But this is not what I want. The bookmarks should keep the users on the page that they are on.</p>
  
  <p>I put this line of code in the config.yml file:</p>
  
  <p>SSViewer:
    rewrite_hash_links: false</p>
  
  <p>That stopped the bookmarks from being treated like website urls, but that hasn't fixed everything it seems. Is there something I can add to the .yml file to prevent bookmarks on subpages from returning to the homepage?</p>
  
  <p>EDIT: Disabling JavaScript does NOT fix the issue, so it's not server-side related. The issue occurs in Chrome, FireFox, Safari, and IE, so it doesn't seem to be browser specific.</p>