From b3dc5b8bb4cf3a7a7dd59f82efecde3ca1cae7d2 Mon Sep 17 00:00:00 2001 From: Oleksii Nazarenko Date: Mon, 2 Dec 2024 16:04:16 +0000 Subject: [PATCH] decode uri in module header --- src/features/header/ModuleHeader.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/features/header/ModuleHeader.tsx b/src/features/header/ModuleHeader.tsx index 607836a..43e6c15 100644 --- a/src/features/header/ModuleHeader.tsx +++ b/src/features/header/ModuleHeader.tsx @@ -8,7 +8,9 @@ import { getSegmentType } from "@src/features/router/getSegmentType" export default function ModuleHeader() { const currentUrl = location.href.toString() - const urlSegments = extractUrlSegments(currentUrl) + const urlSegments = extractUrlSegments(currentUrl).map((segment) => + decodeURI(segment) + ) const homePath = urlSegments[0]