---
title: decodeRoutePath
description: >-
  Decode a percent-encoded URL pathname once; preserve slashes and return
  undefined for malformed escapes.
updated_at: '2026-11-12T10:11:48+01:00'
created_at: '2026-11-12T10:11:48+01:00'
symbol:
  kind: function
  name: decodeRoutePath
  signatures:
    - 'decodeRoutePath(pathname: string): string | undefined'
  parameters:
    - name: pathname
      type: string
  returns:
    type: string | undefined
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/core/src/route-path.ts#L2
---

# decodeRoutePath
