Skip to content

fix(docs): repair root-relative README and tool guide links - #6750

Open
simpleqt wants to merge 1 commit into
1Panel-dev:v2from
simpleqt:fix-root-relative-doc-links
Open

fix(docs): repair root-relative README and tool guide links#6750
simpleqt wants to merge 1 commit into
1Panel-dev:v2from
simpleqt:fix-root-relative-doc-links

Conversation

@simpleqt

Copy link
Copy Markdown
  • README.md language switcher used href="/README_CN.md" and
    href="/README.md"; on GitHub absolute paths resolve against the
    domain, not the repo, so both 404. Drop the leading slash so they
    resolve to the sibling files in the repository root.
  • ui/public/tool//detail.md referenced screenshots via
    /admin/tool/img/
    .jpg. The images actually live in ui/public/tool/img/
    and the /admin/ prefix is host-absolute: it only happens to work in a
    default MaxKB deployment (ADMIN_PATH=/admin) and breaks on GitHub or
    any custom ADMIN_PATH. Replace with relative ../img/ paths that point
    at the real files in the repo.

- README.md language switcher used href="/README_CN.md" and
  href="/README.md"; on GitHub absolute paths resolve against the
  domain, not the repo, so both 404. Drop the leading slash so they
  resolve to the sibling files in the repository root.
- ui/public/tool/*/detail.md referenced screenshots via
  /admin/tool/img/*.jpg. The images actually live in ui/public/tool/img/
  and the /admin/ prefix is host-absolute: it only happens to work in a
  default MaxKB deployment (ADMIN_PATH=/admin) and breaks on GitHub or
  any custom ADMIN_PATH. Replace with relative ../img/ paths that point
  at the real files in the repo.
Copilot AI lite review requested due to automatic review settings August 23, 2026 15:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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

Successfully merging this pull request may close these issues.

2 participants