Browse Source

[Glitch] Fix wrong redirect from getting started to home in advanced Web UI

Port 4a818ac2de to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
closed-social-glitch-2
Hanage999 5 years ago
committed by ThibG
parent
commit
c095eed121
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/javascript/flavours/glitch/features/getting_started/index.js

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

@ -101,9 +101,9 @@ const NAVIGATION_PANEL_BREAKPOINT = 600 + (285 * 2) + (10 * 2);
}
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