From d51a4a03014a5fabfc28730b9f27a3f395df7c60 Mon Sep 17 00:00:00 2001 From: Stefan Marr Date: Thu, 4 Jul 2024 14:12:39 +0100 Subject: [PATCH] Update the redirect on refreshing a report to use the curent URL Previously, the refresh still used the old url, which used the project name instead of the slug that is now used consistently. Signed-off-by: Stefan Marr --- src/backend/compare/compare.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/compare/compare.ts b/src/backend/compare/compare.ts index 4b82e24b..9334ed45 100644 --- a/src/backend/compare/compare.ts +++ b/src/backend/compare/compare.ts @@ -254,7 +254,7 @@ export async function deleteCachedReport( Change: ${change} `; ctx.status = 303; - ctx.redirect(`/compare/${project}/${base}/${change}`); + ctx.redirect(`/${project}/compare/${base}..${change}`); } else { ctx.body = 'Incorrect authentication.'; ctx.status = 403;