Improve error logging and fix relative URL resolution in Overview docs loader#226
Draft
Improve error logging and fix relative URL resolution in Overview docs loader#226
Conversation
…n loader Agent-Logs-Url: https://github.com/smswithoutborders/RelaySMS-Website/sessions/346adb76-4140-4b2b-a82f-8b39e7e92909 Co-authored-by: PromiseFru <33162641+PromiseFru@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Log error for HTML received instead of markdown
Improve error logging and fix relative URL resolution in Overview docs loader
Apr 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Silent failures and a subtle URL resolution bug in the Overview documentation drawer made debugging difficult and could cause relative markdown links to resolve incorrectly.
Changes
console.warnwith the full doc path before throwing, so the fallback trigger is visible in devtoolsconsole.warn(with error) when falling back to the default doc, surfacing the root cause that was previously swallowedconsole.warnwith the offendinghrefin the catch block instead of silently settingisGitHubLink = falsewindow.location.origin→window.location.hrefso relative links in markdown (e.g../other.md) resolve against the current page path, not just the originnodeparam — remove from theacomponent destructorOriginal prompt