diff --git a/components/root/root.jsx b/components/root/root.jsx index e860fc8c247067d5d6b9e0fe01c03fb5bd1f9eee..590aa4abc7b4abf65f1df186893fb4d3e7862dde 100644 --- a/components/root/root.jsx +++ b/components/root/root.jsx @@ -203,6 +203,9 @@ export default class Root extends React.Component { 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 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)); @@ -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)); BrowserStore.setLandingPageSeen(true); } + } } redirectIfNecessary = (props) => {