mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
FIX: In IE9 *shudder* the path will be incorrect and reloading the
latest posts will fail.
This commit is contained in:
parent
ebb27860ac
commit
7f6bace7c5
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user