diff options
author | Hanage999 <hanage999@crazynewworld.net> | 2019-05-26 19:22:33 +0900 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-11-19 15:32:26 -0600 |
commit | e228ec1d09c6d8949c682777134c2aa757d45fba (patch) | |
tree | 2b470ff1e782744d03b45c0af5c0326fdccf5b37 | |
parent | 4da0c1b25eaabefaefd916960767735097713501 (diff) |
Fix wrong redirect from getting started to home in advanced Web UI (#10839)
* update Ruby to 2.5.3 * Link to Getting Started will not redirect to Home in multi-column UI (https://github.com/tootsuite/mastodon/pull/10835)
-rw-r--r-- | app/javascript/mastodon/features/getting_started/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/features/getting_started/index.js b/app/javascript/mastodon/features/getting_started/index.js index bafcc275b..129ce77f6 100644 --- a/app/javascript/mastodon/features/getting_started/index.js +++ b/app/javascript/mastodon/features/getting_started/index.js @@ -76,9 +76,9 @@ class GettingStarted extends ImmutablePureComponent { }; componentDidMount () { - const { myAccount, fetchFollowRequests } = this.props; + const { myAccount, fetchFollowRequests, multiColumn } = this.props; - if (window.innerWidth >= NAVIGATION_PANEL_BREAKPOINT) { + if (!multiColumn && window.innerWidth >= NAVIGATION_PANEL_BREAKPOINT) { this.context.router.history.replace('/timelines/home'); return; } |