]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/history.js
Replace Vary header with explicit xhr=1 param
[rails.git] / app / assets / javascripts / index / history.js
index 6cbc86307b97b4446214b9d977fdce95207c5a85..29a3d1fb90a76bc59f0472f598433971dd845db4 100644 (file)
@@ -99,7 +99,7 @@ OSM.History = function(map) {
 
   page.pushstate = page.popstate = function(path) {
     $("#history_tab").addClass("current");
-    $("#sidebar_content").load(path, function(a, b, xhr) {
+    $("#sidebar_content").load(path + "?xhr=1", function(a, b, xhr) {
       if (xhr.getResponseHeader('X-Page-Title')) {
         document.title = xhr.getResponseHeader('X-Page-Title');
       }