message: fix(md-enhance): fix page permalink broken with link check
diff: @@ -20,6 +20,7 @@ export const getCheckLinksStatus = (
  false;
  };
  +// TODO: Rebuild this when https://github.com/vuepress/vuepress-next/pull/832 is merged
  export const checkLinks = (page: Page, app: App): void => {
  const path = page.filePathRelative || page.path;
  const {
  @@ -33,12 +34,9 @@ export const checkLinks = (page: Page, app: App): void => {
  ...markdownLinks
  // relative markdown links
  .filter(({ raw }) => !raw.startsWith("/"))
  - .filter(({ absolute }) =>
  + .filter(({ relative }) =>
  // check whether the page exists
  - pages.every(
  - ({ filePathRelative }) =>
  - !filePathRelative || `/${filePathRelative}` !== absolute
  - )
  + pages.every(({ filePathRelative }) => filePathRelative !== relative)
  ),
  ...markdownLinks
  // absolute markdown link starts with base
  @@ -52,6 +50,7 @@ export const checkLinks = (page: Page, app: App): void => {
  ),
  ].map(({ raw }) => raw);
  + // TODO: Remove this when https://github.com/vuepress/vuepress-next/pull/832 is merged
  const nonStandardLinks = markdownLinks
  // absolute markdown links not under base
  .filter(({ raw }) => raw.startsWith(`/`) && !raw.startsWith(base))
  @@ -60,6 +59,7 @@ export const checkLinks = (page: Page, app: App): void => {
  if (brokenLinks.length)
  logger.warn(`Broken links found in ${path}: ${brokenLinks.join(", ")}`);
  + // TODO: Remove this when https://github.com/vuepress/vuepress-next/pull/832 is merged
  if (nonStandardLinks.length)
  logger.warn(
  `Markdown links outside project found in ${path}: ${brokenLinks.join(
  