Skip to content

vue-router / _encodePath

_encodePath() ​

ts
function _encodePath(text): string;

Internal

Encode characters that need to be encoded on the path section of the URL.

Parameters ​

text ​

string | number | null | undefined

string to encode

Returns ​

string

encoded string

Exposed for integrations (e.g. Nuxt). Not covered by semver.

Released under the MIT License.