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 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 : ""})`
|
||||
}}>
|
||||
|
@ -45,6 +45,10 @@ const router = createBrowserRouter([
|
||||
path: "/live/:id",
|
||||
element: <StreamPage />,
|
||||
},
|
||||
{
|
||||
path: "/:id",
|
||||
element: <StreamPage />,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
@ -64,7 +64,7 @@ export function LayoutPage() {
|
||||
ev.kind,
|
||||
ev.pubkey
|
||||
);
|
||||
navigate(`/live/${naddr}`);
|
||||
navigate(`/${naddr}`);
|
||||
}
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user