diff --git a/reviewboard/static/rb/js/pages/views/diffViewerPageView.js b/reviewboard/static/rb/js/pages/views/diffViewerPageView.js
index a699e20188491056f11d0b6c1d7b51c743bb3567..cc6144987323fc3d6df4734cb7b528dd2832674c 100644
--- a/reviewboard/static/rb/js/pages/views/diffViewerPageView.js
+++ b/reviewboard/static/rb/js/pages/views/diffViewerPageView.js
@@ -85,7 +85,7 @@ RB.DiffViewerPageView = RB.ReviewablePageView.extend({
          * which isn't a valid URL.
          */
         if (window.location.hash === '#index_header') {
-            window.location.hash = '';
+            window.location.replace('#');
         }
 
         Backbone.history.start({
