You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my repository https://github.com/ekera/regevnum, in the README.md file that is automatically displayed below the listing of the root directory, some of the links are broken, and I have a hard time understanding why.
When I view the source for the README.md file, all of these links are identical, yet they seemingly direct to different URLs when README.md is rendered. I do not understand why. Am I missing something trivial, or is this actually a bug?
Maybe what's likely happening is you're experiencing a discrepancy in link behavior when viewing the README.md file in your GitHub repository. This might be due to how relative and absolute paths are interpreted in different contexts.
Yes, I am aware of this. But as I wrote, the issue is that multiple occurrences of the same link in README.md are seemingly rendered differently, resulting in URLs that are both correct and broken. This when viewing the root listing of the repository, and the README.md file as rendered below the listing. I suspect that this is a bug.
I do not want to use absolute links, since this would not work if I move or rename the repository, or add more branches, etc.
BugSomething isn't working correctlyRepositoriesThe core of version-controlled code storage
2 participants
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Select Topic Area
Bug
Body
In my repository https://github.com/ekera/regevnum, in the
README.md
file that is automatically displayed below the listing of the root directory, some of the links are broken, and I have a hard time understanding why.For example, some of the four links to
simulator.sage
direct to "https://github.com/ekera/simulator.sage", whereas others direct to "https://github.com/ekera/regevnum/blob/main/simulator.sage", where the latter is correct.When I view the source for the
README.md
file, all of these links are identical, yet they seemingly direct to different URLs whenREADME.md
is rendered. I do not understand why. Am I missing something trivial, or is this actually a bug?If I click
README.md
, i.e. if I go tohttps://github.com/ekera/regevnum/blob/main/README.md
, then all four links direct to "https://github.com/ekera/regevnum/blob/main/simulator.sage" which is correct.Also, when I view my repository in the GitHub app on my iPhone, all four links direct to the correct path.
Beta Was this translation helpful? Give feedback.
All reactions