mirror of
https://github.com/open-webui/docs.git
synced 2026-11-05 01:38:13 +00:00
[PR #1373] [MERGED] docs: fix dead relative links on the creating files page #1340
Labels
No labels
bug
documentation
documentation
duplicate
enhancement
enhancement
good first issue
good first issue
good first issue
help wanted
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/docs#1340
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/docs/pull/1373
Author: @silentoplayz
Created: 9/2/2026
Status: ✅ Merged
Merged: 9/2/2026
Merged by: @silentoplayz
Base:
main← Head:docs/creating-files-link-fix📝 Commits (1)
749c2e5docs: fix dead relative links on the creating files page📊 Changes
1 file changed (+4 additions, -4 deletions)
View changed files
📝
docs/features/open-terminal/use-cases/creating-files.md(+4 -4)📄 Description
Summary
The four relative links on the Create Documents & Files page are dead when clicked. This adds the file extension to each one, which is the form Docusaurus resolves at build time.
Clicking Files shown in the chat message on that page currently lands on
/features/open-terminal/use-cases/file-browser, which does not exist. The correct target is/features/open-terminal/file-browser, and that is exactly what thehrefin the HTML says.Docusaurus renders the correct
hreffor the server-side pass. The hydrated router then re-resolves the original relative path against the page URL rather than the file path, so a click navigates somewhere the markup never pointed:Adding the extension fixes it because the link is then resolved at build time and the router never re-resolves it. 109 links in this repo already use that form.
Related issue or discussion
No linked issue. This corrects links on the page added in #1370.
Checklist
Notes for reviewers
Reproducing it on the current site
https://docs.openwebui.com/features/open-terminal/use-cases/creating-files/Worth knowing before checking: hovering, middle-clicking, and pasting the URL all work, because each of those uses the
href, which is correct. Only a plain left click reproduces it.That is also why the build does not catch this.
onBrokenLinksis set tothrowand passes, because it validates the renderedhref. SettingonBrokenMarkdownLinkstothrowwould fail the build when an extension-form link loses its target, which is the check that catches this class of problem.Verification
I ran
npm run buildand clicked all four links on the built site. Every one lands correctly, including the anchor:/features/open-terminal/file-browser#files-shown-in-the-chat-message/features/open-terminal/file-browser/features/open-terminal/use-cases/file-analysis/features/open-terminal/file-browserScope
I kept this to the one page. The same pattern affects other pages across the docs, and I am reporting those separately with the full list rather than widening this PR.
This PR was prepared with AI copilot assistance. I have thoroughly reviewed and manually tested it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.