Skip to content

Commit

Permalink
Update aws/viewer-request/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kearfy authored Oct 9, 2024
1 parent b867df9 commit bb7c6a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aws/viewer-request/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,9 @@ function handler(event) {
case path.startsWith('/docs/how-to/'):
return redirect(`https://surrealdb.com/docs/tutorials/${path.slice(13)}`);
case path.startsWith('/docs/surrealdb/how-to/'):
case path.startsWith('/docs/surrealdb/tutorials/'):
return redirect(`https://surrealdb.com/docs/tutorials/${path.slice(23)}`);
case path.startsWith('/docs/surrealdb/tutorials/'):
return redirect(`https://surrealdb.com/docs/tutorials/${path.slice(26)}`);
// Redirect SurrealQL subpaths to Querying
case path.startsWith('/docs/surrealdb/surrealql/'):
return redirect(`https://surrealdb.com/docs/surrealql/${path.slice(26)}`);
Expand Down

0 comments on commit bb7c6a7

Please sign in to comment.