From efc38529c7d835e62bacd2c544dd412df2aaa073 Mon Sep 17 00:00:00 2001 From: jessop Date: Wed, 10 Jun 2020 17:01:44 -0400 Subject: [PATCH] redirect content to lbry.tv --- client/src/pages/ContentPageWrapper/view.jsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/client/src/pages/ContentPageWrapper/view.jsx b/client/src/pages/ContentPageWrapper/view.jsx index 9a1cdb3f..79d6b2c3 100644 --- a/client/src/pages/ContentPageWrapper/view.jsx +++ b/client/src/pages/ContentPageWrapper/view.jsx @@ -3,7 +3,7 @@ import ErrorPage from '@pages/ErrorPage'; import ShowAssetLite from '@pages/ShowAssetLite'; import ShowAssetDetails from '@pages/ShowAssetDetails'; import ShowChannel from '@pages/ShowChannel'; -import { withRouter } from 'react-router-dom'; +import { withRouter, Redirect } from 'react-router-dom'; import { CHANNEL, @@ -23,7 +23,14 @@ class ContentPageWrapper extends React.Component { } } render () { - const { error, requestType } = this.props; + const { error, requestType, match } = this.props; + const { params } = match; + const { claim, identifier } = params; + if (identifier) { + return + } else { + return + } if (error) { return (