Skip to content

设置base后页面跳转404 #202

@cmtlyt

Description

@cmtlyt

Describe the bug

image

  1. 页面跳转404
  2. themeConfig.sidebar.items.link 需要手动添加 base路径才能正常跳转

Reproduction

// .island/config.ts

export default defineConfig({
  // ...
  base: '/test/',
  // ...
})
// docs/index.md
---
hero:
  // ...
    actions:
      - theme: brand
        text: go
        link: /article
  // ...
---

Expected behavior

期望跳转到/program-guide/article

实际跳转到/program-guide/program-guide/article

如果配置actions link为/program-guide/article

则会跳转到/program-guide/program-guide/program-guide/article

System Info

mac
node@18
pnpm@8
[email protected]

Additional context

No response

Validations

  • Read the docs
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions