Function: decodePath()
Source: 1.2.0 · 3e13c49d364c
ts
function decodePath(path): string;Defined in: packages/valaxy/client/utils/path.ts:17
Decode a percent-encoded URL path (/posts/%E4%B8%AD → /posts/中).
Route records and route.path are percent-encoded, while file names, config links and collection keys are written raw. Decode before comparing them. Malformed sequences return the path unchanged.
Parameters
path
string
Returns
string