diff --git a/ui/page/show/view.jsx b/ui/page/show/view.jsx index fb9f6f054..3733e37e4 100644 --- a/ui/page/show/view.jsx +++ b/ui/page/show/view.jsx @@ -1,7 +1,8 @@ // @flow import { DOMAIN } from 'config'; +import * as PAGES from 'constants/pages'; import React, { useEffect } from 'react'; -import { Redirect } from 'react-router-dom'; +import { Redirect, useHistory } from 'react-router-dom'; import Spinner from 'component/spinner'; import ChannelPage from 'page/channel'; import FilePage from 'page/file'; @@ -52,7 +53,9 @@ function ShowPage(props: Props) { const claimExists = claim !== null && claim !== undefined; const haventFetchedYet = claim === undefined; const isMine = claim && claim.is_my_output; - const { contentName } = parseURI(uri); + const { channelName, contentName } = parseURI(uri); + const { push } = useHistory(); + const isContentNameChannel = channelName && !contentName; useEffect(() => { // @if TARGET='web' @@ -95,11 +98,24 @@ function ShowPage(props: Props) { {!isResolvingUri && !isSubscribed && (