Skip to content

vue-router / _stripBase

_stripBase() ​

ts
function _stripBase(pathname, base): string;

Strips off the base from the beginning of a location.pathname in a non-case-sensitive way. base must be normalized like router.options.history.base (no trailing slash).

Parameters ​

pathname ​

string

location.pathname

base ​

string

base to strip off

Returns ​

string

Released under the MIT License.