Skip to content

README.MD relative file links are broken in the auto-preview? #70735

Answered by acusti
nbouvrette asked this question in Repositories
Discussion options

You must be logged in to vote

following up on https://github.com/orgs/community/discussions/70664#discussioncomment-7348156:

this is a duplicate of https://github.com/orgs/community/discussions/67750. the bug: relative links are broken for the repo’s root readme file as rendered at the repo homepage if they are contained within a non-paragraph markdown block.

in this case, the workarounds are:

  1. remove the linked text from any non-paragraph markdown block, e.g. remove the > from in front of the text containing the broken link in this case
  2. update the link to have a leading slash and be built as from github.com/*, so the link in this case would be /Avansai/properties-file/blob/main/V2-TO-V3-UPGRADE-GUIDE.md. this works …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nbouvrette
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working correctly
2 participants