From 5d5a842f376e444ac448b197da481d120dc31b2b Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Thu, 12 Feb 2026 15:05:52 +0800 Subject: [PATCH] fix: navigate for plugin category --- web/app/components/plugins/marketplace/atoms.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/web/app/components/plugins/marketplace/atoms.ts b/web/app/components/plugins/marketplace/atoms.ts index 7867660d7e..5ab6ababe6 100644 --- a/web/app/components/plugins/marketplace/atoms.ts +++ b/web/app/components/plugins/marketplace/atoms.ts @@ -39,10 +39,7 @@ export function useActivePluginCategory() { const categoryFromPath = segments[1] || CATEGORY_ALL const validatedCategory = getValidatedPluginCategory(categoryFromPath) const handleChange = (newCategory: string) => { - const newPathSegments = [...segments] - newPathSegments[1] = newCategory - const newPath = `/${newPathSegments.join('/')}` - router.push(newPath) + router.push(`/plugins/${newCategory}`) } return [validatedCategory, handleChange] as const }