Skip to content

Commit f5ad4df

Browse files
committed
fix(webapp): preserve filters on queues page action redirects
1 parent b013135 commit f5ad4df

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
area: webapp
3+
type: fix
4+
---
5+
6+
Preserve filters on the queues page when submitting modal actions.

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.queues/route.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,7 @@ export const action = async ({ request, params }: ActionFunctionArgs) => {
176176
const action = formData.get("action");
177177

178178
const url = new URL(request.url);
179-
const { page } = SearchParamsSchema.parse(Object.fromEntries(url.searchParams));
180-
181-
const redirectPath = `/orgs/${organizationSlug}/projects/${projectParam}/env/${envParam}/queues?page=${page}`;
179+
const redirectPath = `/orgs/${organizationSlug}/projects/${projectParam}/env/${envParam}/queues${url.search}`;
182180

183181
if (environment.archivedAt) {
184182
return redirectWithErrorMessage(redirectPath, request, "This branch is archived");

0 commit comments

Comments
 (0)