Skip to content

Commit

Permalink
Update the redirect on refreshing a report to use the curent URL
Browse files Browse the repository at this point in the history
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 <git@stefan-marr.de>
  • Loading branch information
smarr committed Jul 4, 2024
1 parent ec47a4d commit d51a4a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/compare/compare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d51a4a0

Please sign in to comment.