sanyuan0704 / island.js

📝 Vite & MDX powered static site generator. Base on islands architecture

Home Page:https://islandjs.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Home page hero actions link incorrect path when `base` path is set

toteto opened this issue · comments

Describe the bug

I have config with base set to /docs/. In the home page hero actions when I have some link (example: page-1), when I click on the button in the application I am being navigated to example.com/docs/docs/page-1

---
pageType: home

hero:
    name: Docs
    text: <text>
    tagline: <tagline>
    image:
        src: logo.svg
        alt: Note
    actions:
        - theme: brand
          text: Resolver
          link: page-1
features:
    - title: Test
      details: Test
      icon: 🥴

Reproduction

Create app with base param set and home page hero action with some page in the app

Expected behavior

The user is navigated to example.com/docs/page-1

System Info

Non relevant

Additional context

As a temporary workaround I am setting the link to one level up relative path

    actions:
        - theme: brand
          text: Resolver
-          link: page-1
+          link: ../page-1

Validations

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