Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bhb603 committed Dec 4, 2024
1 parent 877e376 commit 8be8505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/routes/docs/[[version]]/[...slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const handler = define.handlers<Data>({
async GET(ctx) {
const { slug, version: versionFromPath } = ctx.params;

// If no slug is specfied and versionFromPath is valid, redirect to the first page of that version
// If no slug is specified and versionFromPath is valid, redirect to the first page of that version
// E.g. /docs/latest redirects to /docs/latest/{first-page}
if (!slug && TABLE_OF_CONTENTS[versionFromPath]) {
const href = getFirstPageUrl(versionFromPath);
Expand Down

0 comments on commit 8be8505

Please sign in to comment.