Skip to content

Commit

Permalink
decode uri in module header
Browse files Browse the repository at this point in the history
  • Loading branch information
Herobread committed Dec 2, 2024
1 parent d858831 commit b3dc5b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/features/header/ModuleHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit b3dc5b8

Please sign in to comment.