Skip to content

Visiting /docs results /docs.html then 404 if base is set as /docs/ #852

@JounQin

Description

@JounQin

Describe the bug

image

image

Reproduction

https://github.com/JounQin/test/tree/vitepress

yarn docs:build --base /docs/ && yarn docs:serve --base /docs/

Expected behavior

http://localhost:8000/docs (Without ending slash) should work same as http://localhost:8000/docs/ (With ending slash)

System Info

System:
    OS: macOS 13.0
    CPU: (10) arm64 Apple M1 Max
    Memory: 17.64 GB / 64.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.15.1 - ~/Library/Caches/fnm_multishells/3706_1656066380637/bin/node
    Yarn: 1.22.19 - ~/Library/Caches/fnm_multishells/3706_1656066380637/bin/yarn
    npm: 8.13.1 - ~/Library/Caches/fnm_multishells/3706_1656066380637/bin/npm
  Browsers:
    Chrome: 103.0.5060.53
    Firefox: 101.0.1
    Safari: 16.0
  npmPackages:
    vitepress: ^1.0.0-alpha.4 => 1.0.0-alpha.4

Additional context

No response

Validations

  • Follow our Code of Conduct
  • 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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions