Function: isSamePagePath() ​

Source: 1.1.0 · a1d5eeca2f43

ts
function isSamePagePath(
   filePath, 
   pathname, 
   base?
): boolean;

Defined in: packages/valaxy/client/utils/path.ts:30

Check whether a page file path (/posts/中文.md, /guide/index.md) is the page shown at a browser pathname (/base/posts/%E4%B8%AD%E6%96%87).

Parameters ​

filePath ​

string

pathname ​

string

base? ​

string = '/'

Returns ​

boolean