Files
supabase/apps/docs/features/recommendations/NotFound.utils.ts
Charis f4779d4844 refactor: migrate guides to app router (#23101)
Migrate guides to App Router.
2024-07-03 10:25:06 -04:00

9 lines
211 B
TypeScript

const notFoundLink = (origPath: string) => {
if (!origPath) return '/not-found'
const searchParams = new URLSearchParams({ page: origPath })
return `/not-found?${searchParams}`
}
export { notFoundLink }