diff --git a/src/libs/Navigation/linkingConfig/config.ts b/src/libs/Navigation/linkingConfig/config.ts index cb9ee8486b71..4f8ccb7ec2c9 100644 --- a/src/libs/Navigation/linkingConfig/config.ts +++ b/src/libs/Navigation/linkingConfig/config.ts @@ -286,7 +286,7 @@ const config: LinkingOptions['config'] = { [SCREENS.WORKSPACE.CATEGORY_EDIT]: { path: ROUTES.WORKSPACE_CATEGORY_EDIT.route, parse: { - categoryName: (categoryName: string) => decodeURI(categoryName), + categoryName: (categoryName: string) => decodeURIComponent(categoryName), }, }, [SCREENS.WORKSPACE.CREATE_DISTANCE_RATE]: { diff --git a/src/pages/workspace/categories/EditCategoryPage.tsx b/src/pages/workspace/categories/EditCategoryPage.tsx index 23cf2bd103a7..ab3c116d6900 100644 --- a/src/pages/workspace/categories/EditCategoryPage.tsx +++ b/src/pages/workspace/categories/EditCategoryPage.tsx @@ -27,7 +27,7 @@ type EditCategoryPageProps = WorkspaceEditCategoryPageOnyxProps & StackScreenPro function EditCategoryPage({route, policyCategories}: EditCategoryPageProps) { const styles = useThemeStyles(); const {translate} = useLocalize(); - const currentCategoryName = decodeURIComponent(route.params.categoryName); + const currentCategoryName = route.params.categoryName; const editCategory = useCallback( (values: FormOnyxValues) => {