From 6a7c4a0c75b74b0732b5a9834cb09ecacf47e393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Fri, 29 Jul 2022 23:46:03 +0200 Subject: [PATCH] Restrict location page access to matching country slug from param Location page would be accessible if the country page param was set to anything else than the country it should be linked to from the data --- src/routes/[country]/[location]/index.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/routes/[country]/[location]/index.ts b/src/routes/[country]/[location]/index.ts index 1ba01cf..e18caae 100644 --- a/src/routes/[country]/[location]/index.ts +++ b/src/routes/[country]/[location]/index.ts @@ -25,7 +25,7 @@ export async function GET ({ params }: RequestEvent): Promise