Skip to content

Commit

Permalink
Update the redirect on refreshing a report to use the curent URL (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
smarr committed Jul 4, 2024
2 parents ec47a4d + 27c1536 commit fc3da8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.rebench
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Used for benchmarking
FROM rebenchdb-app:latest

RUN apt-get install -y git python3-pip
RUN apt-get update && apt-get install -y git python3-pip
RUN pip install --break-system-packages git+https://github.com/smarr/ReBench.git

RUN npm run pretest
Expand Down
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 fc3da8d

Please sign in to comment.