Skip to content

Commit

Permalink
docs: remove ineffective redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
ssalbdivad committed Jan 27, 2025
1 parent f25bfb4 commit 059a899
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ark/docs/app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ export default async (props: { params: Promise<{ slug?: string[] }> }) => {

if (
!params.slug?.length ||
(params.slug?.length === 1 &&
(params.slug[0] === "" || params.slug[0] === "intro")) ||
(params.slug.length === 2 &&
params.slug[0] === "intro" &&
params.slug[1] === "")
(params.slug?.length === 1 && params.slug[0] === "intro")
)
redirect("/docs/intro/setup")

Expand Down

0 comments on commit 059a899

Please sign in to comment.