From 7f6bace7c5ec6535c9be28ffce8a07dfddfcf232 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 25 Jun 2014 12:08:53 -0400 Subject: [PATCH] FIX: In IE9 *shudder* the path will be incorrect and reloading the latest posts will fail. --- app/assets/javascripts/discourse/lib/url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/url.js b/app/assets/javascripts/discourse/lib/url.js index def4300238b..60d926394d8 100644 --- a/app/assets/javascripts/discourse/lib/url.js +++ b/app/assets/javascripts/discourse/lib/url.js @@ -203,7 +203,7 @@ Discourse.URL = Em.Object.createWithMixins({ navigatedToHome: function(oldPath, path) { var homepage = Discourse.Utilities.defaultHomepage(); - if (path === "/" && (oldPath === "/" || oldPath === "/" + homepage)) { + if (window.history && window.history.pushState && path === "/" && (oldPath === "/" || oldPath === "/" + homepage)) { // refresh the list switch (homepage) { case "top" : { this.controllerFor('discovery/top').send('refresh'); break; }