mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Redirect users to top when latest is the homepage
This commit is contained in:
@@ -13,6 +13,7 @@ export default Discourse.Route.extend(OpenComposer, {
|
||||
beforeModel(transition) {
|
||||
if (
|
||||
(transition.intent.url === "/" ||
|
||||
transition.intent.url === "/latest" ||
|
||||
transition.intent.url === "/categories") &&
|
||||
transition.targetName.indexOf("discovery.top") === -1 &&
|
||||
Discourse.User.currentProp("should_be_redirected_to_top")
|
||||
|
||||
Reference in New Issue
Block a user