Browse Source

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)
pull/4/head
Hanage999 4 years ago
committed by Eugen Rochko
parent
commit
4a818ac2de
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/javascript/mastodon/features/getting_started/index.js

+ 2
- 2
app/javascript/mastodon/features/getting_started/index.js View File

@ -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;
}

Loading…
Cancel
Save