Remove /live from stream path

This commit is contained in:
2023-06-30 12:19:17 +01:00
parent 17d1a11c30
commit f4ea779b0f
3 changed files with 6 additions and 2 deletions

View File

@ -13,7 +13,7 @@ export function VideoTile({ ev }: { ev: NostrEvent }) {
const isLive = status === "live";
const link = encodeTLV(NostrPrefix.Address, id, undefined, ev.kind, ev.pubkey);
return <Link to={`/live/${link}`} className="video-tile" ref={ref}>
return <Link to={`/${link}`} className="video-tile" ref={ref}>
<div style={{
backgroundImage: `url(${inView ? image : ""})`
}}>

View File

@ -45,6 +45,10 @@ const router = createBrowserRouter([
path: "/live/:id",
element: <StreamPage />,
},
{
path: "/:id",
element: <StreamPage />,
},
],
},
{

View File

@ -64,7 +64,7 @@ export function LayoutPage() {
ev.kind,
ev.pubkey
);
navigate(`/live/${naddr}`);
navigate(`/${naddr}`);
}
return (