From bb7c6a70a7457dcddf936369a5f10b24fe2dd91c Mon Sep 17 00:00:00 2001 From: Micha de Vries Date: Wed, 9 Oct 2024 11:50:25 +0200 Subject: [PATCH] Update aws/viewer-request/index.js --- aws/viewer-request/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aws/viewer-request/index.js b/aws/viewer-request/index.js index fe498cbcb..63ef20898 100644 --- a/aws/viewer-request/index.js +++ b/aws/viewer-request/index.js @@ -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)}`);