diff --git a/src/lib/drupal/utils.tsx b/src/lib/drupal/utils.tsx index f634e52d..313e1ec2 100644 --- a/src/lib/drupal/utils.tsx +++ b/src/lib/drupal/utils.tsx @@ -34,7 +34,7 @@ export const buildUrl = ( export function getPathFromContext( context: PageProps, prefix = "" -): string | string[] { +): string { let {slug} = context.params slug = Array.isArray(slug) ? slug.map((s) => encodeURIComponent(s)).join("/") : slug