Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

设置base后页面跳转404 #202

Open
2 tasks done
cmtlyt opened this issue Jan 17, 2024 · 1 comment
Open
2 tasks done

设置base后页面跳转404 #202

cmtlyt opened this issue Jan 17, 2024 · 1 comment

Comments

@cmtlyt
Copy link

cmtlyt commented Jan 17, 2024

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
islandjs@0.7.6

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.
@cmtlyt
Copy link
Author

cmtlyt commented Jan 17, 2024

如果同时设置了locales和base的话,base会被强制转置到locales

我直接使用master分支添加base配置后发现的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant