Skip to content

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

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

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.

@shaohuzhang1

Copy link
Copy Markdown
Contributor

The use of absolute paths is for the program to use, and using relative paths will cause the program image to 404

@simpleqt

Copy link
Copy Markdown
Author

You're right — thank you for catching it. I misread the root-relative image paths as broken links; they're the runtime URL convention the app resolves, and my relative-path rewrite would 404 the images. The README link change falls under the same misreading (both forms work on GitHub). Closing agrees with me — no part of this should land. Sorry for the noise.

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.

3 participants