diff --git a/Changelog.md b/Changelog.md index 18728e241..3a6ffcce2 100644 --- a/Changelog.md +++ b/Changelog.md @@ -15,6 +15,7 @@ * Always show public photos on profile page [#6398](https://github.com/diaspora/diaspora/pull/6398) * Expose Unicorn's pid option to our configuration system [#6411](https://github.com/diaspora/diaspora/pull/6411) * Add stream of all public posts [#6465](https://github.com/diaspora/diaspora/pull/6465) +* Reload stream when clicking on already active one [#6466](https://github.com/diaspora/diaspora/pull/6466) # 0.5.3.1 diff --git a/app/assets/javascripts/app/app.js b/app/assets/javascripts/app/app.js index 8413f700e..2260330e5 100644 --- a/app/assets/javascripts/app/app.js +++ b/app/assets/javascripts/app/app.js @@ -113,7 +113,11 @@ var app = { } else { $(".stream_title").text(link.text()); } - app.router.navigate(link.attr("href").substring(1) ,true); + + // app.router.navigate doesn't tell us if it changed the page, + // so we use Backbone.history.navigate instead. + var change = Backbone.history.navigate(link.attr("href").substring(1) ,true); + if(change === undefined) { Backbone.history.loadUrl(link.attr("href").substring(1)); } }); },