mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-01 09:39:51 -04: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue