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 }