Skip to content

Commit

Permalink
Fix wrong redirect from getting started to home in advanced Web UI (m…
Browse files Browse the repository at this point in the history
…astodon#10839)

* update Ruby to 2.5.3

* Link to Getting Started will not redirect to Home in multi-column UI (mastodon#10835)
  • Loading branch information
Hanage999 authored and Gargron committed May 26, 2019
1 parent 97e4958 commit 5960166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/javascript/mastodon/features/getting_started/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5960166

Please sign in to comment.