Commit 82971e46 authored by Emil Velikov's avatar Emil Velikov Committed by Jordi Mallach

Disable Android/iOS landing page redirect for now

The instance has a number of changes that prevent us from using the
official client. Some even said the client was broken all together.

Either way - remove the annoying redirect.
Signed-off-by: default avatarEmil Velikov <emil.velikov@collabora.com>
parent 2fe3e504
...@@ -203,6 +203,9 @@ export default class Root extends React.Component { ...@@ -203,6 +203,9 @@ export default class Root extends React.Component {
const toResetPasswordScreen = this.props.location.pathname === '/reset_password_complete'; const toResetPasswordScreen = this.props.location.pathname === '/reset_password_complete';
// Remove any redirects - the mobile apps do no work with the instance
// XXX: Should we make this a proper option/toggle somewhere.
if (false) {
// redirect to the mobile landing page if the user hasn't seen it before // redirect to the mobile landing page if the user hasn't seen it before
if (iosDownloadLink && UserAgent.isIosWeb() && !BrowserStore.hasSeenLandingPage() && !toResetPasswordScreen) { if (iosDownloadLink && UserAgent.isIosWeb() && !BrowserStore.hasSeenLandingPage() && !toResetPasswordScreen) {
this.props.history.push('/get_ios_app?redirect_to=' + encodeURIComponent(this.props.location.pathname) + encodeURIComponent(this.props.location.search)); this.props.history.push('/get_ios_app?redirect_to=' + encodeURIComponent(this.props.location.pathname) + encodeURIComponent(this.props.location.search));
...@@ -211,6 +214,7 @@ export default class Root extends React.Component { ...@@ -211,6 +214,7 @@ export default class Root extends React.Component {
this.props.history.push('/get_android_app?redirect_to=' + encodeURIComponent(this.props.location.pathname) + encodeURIComponent(this.props.location.search)); this.props.history.push('/get_android_app?redirect_to=' + encodeURIComponent(this.props.location.pathname) + encodeURIComponent(this.props.location.search));
BrowserStore.setLandingPageSeen(true); BrowserStore.setLandingPageSeen(true);
} }
}
} }
redirectIfNecessary = (props) => { redirectIfNecessary = (props) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment