Remove /live from stream path
This commit is contained in:
@ -13,7 +13,7 @@ export function VideoTile({ ev }: { ev: NostrEvent }) {
|
|||||||
const isLive = status === "live";
|
const isLive = status === "live";
|
||||||
|
|
||||||
const link = encodeTLV(NostrPrefix.Address, id, undefined, ev.kind, ev.pubkey);
|
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={{
|
<div style={{
|
||||||
backgroundImage: `url(${inView ? image : ""})`
|
backgroundImage: `url(${inView ? image : ""})`
|
||||||
}}>
|
}}>
|
||||||
|
@ -45,6 +45,10 @@ const router = createBrowserRouter([
|
|||||||
path: "/live/:id",
|
path: "/live/:id",
|
||||||
element: <StreamPage />,
|
element: <StreamPage />,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/:id",
|
||||||
|
element: <StreamPage />,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -64,7 +64,7 @@ export function LayoutPage() {
|
|||||||
ev.kind,
|
ev.kind,
|
||||||
ev.pubkey
|
ev.pubkey
|
||||||
);
|
);
|
||||||
navigate(`/live/${naddr}`);
|
navigate(`/${naddr}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Reference in New Issue
Block a user