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

Home page hero actions link incorrect path when base path is set #205

Open
2 tasks done
toteto opened this issue Feb 9, 2024 · 0 comments
Open
2 tasks done

Home page hero actions link incorrect path when base path is set #205

toteto opened this issue Feb 9, 2024 · 0 comments

Comments

@toteto
Copy link

toteto commented Feb 9, 2024

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.
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