Function: isSamePagePath() ​

Source: 1.2.0 · ca61b741492d

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