Skip to content

Commit

Permalink
releasef not losing the spec param on switch between ladder and activity
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammers21 committed Apr 20, 2024
1 parent 1c22c5f commit 59fe6ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,16 @@ const Header = () => {
activity: string;
bracket: string;
}) {
const newPath = generatePath(publicUrls.page, {
let params = new URL(document.location.toString()).searchParams;
let specs = params.get("specs");
var newPath = generatePath(publicUrls.page, {
region,
activity,
bracket,
});
if (specs !== undefined) {
newPath = newPath + "?specs=" + specs;
}
navigate(newPath);
}

Expand Down

0 comments on commit 59fe6ab

Please sign in to comment.