FIX: In IE9 *shudder* the path will be incorrect and reloading the

latest posts will fail.
This commit is contained in:
Robin Ward 2014-06-25 12:08:53 -04:00
parent ebb27860ac
commit 7f6bace7c5

View File

@ -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; }