This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: redirect /ur/id to /url?id=${id}

+12
+12
src/webapp/app/(dashboard)/url/[...id]/page.tsx
··· 1 + import { getUrlFromSlug } from '@/lib/utils/link'; 2 + import { redirect } from 'next/navigation'; 3 + 4 + interface Props { 5 + params: Promise<{ id: string[] }>; 6 + } 7 + export default async function Page(props: Props) { 8 + const { id } = await props.params; 9 + const url = getUrlFromSlug(id); 10 + 11 + redirect(`/url?id=${url}`); 12 + }