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
{{ message }}
Repository navigation
reactions-avatars doesn't work on URLs with extra slashes #5076
The bug is caused by Refined GitHub. It doesn't happen if I disable the extension. (Well technically nothing happens anyways if i disable the extension, but this is true)
Include in this issue:
Screenshots/video/gif demonstrating the bug, if it’s visual
Console errors, if any
Description
This issue doesn't seem to display reaction avatars.
I tested some other issue, it still works, just not on this one.
I also tested other issues in the repo, it still works then and there.
I just figured it out, this happens when adding extra slashes in github URLs, github still sends the "right" page contents, but refined github doesn't pick up on it.
changed the title [-]Reaction avatars don't work on links with extra slashes[/-][+]`reaction-avatars` doesn't work on URLs with a trailing slash[/+]on Nov 16, 2021
I briefly checked some different types of pages and it seems whether a trailing slash is present or not does not make a difference. Perhaps we can just ignore it all the time and add exceptions (if any) later.
changed the title [-]`reaction-avatars` doesn't work on URLs with a trailing slash[/-][+]`reaction-avatars` doesn't work on URLs with extra slashes[/+]on Nov 16, 2021
changed the title [-]`reaction-avatars` doesn't work on URLs with extra slashes[/-][+]`reactions-avatars` doesn't work on URLs with extra slashes[/+]on Nov 16, 2021
Activity
ShadowJonathan commentedon Nov 15, 2021
I just figured it out, this happens when adding extra slashes in github URLs, github still sends the "right" page contents, but refined github doesn't pick up on it.
Link that works: element-hq/element-meta#56
Link that doesn't: https://github.com//vector-im/element-meta/issues/56
[-]Reaction avatars don't work on a particular link[/-][+]Reaction avatars don't work on links with extra slashes[/+]cheap-glitch commentedon Nov 15, 2021
If we want to support this, it should probably be implemented in
github-url-detection.[-]Reaction avatars don't work on links with extra slashes[/-][+]`reaction-avatars` doesn't work on URLs with a trailing slash[/+]kidonng commentedon Nov 16, 2021
I briefly checked some different types of pages and it seems whether a trailing slash is present or not does not make a difference. Perhaps we can just ignore it all the time and add exceptions (if any) later.
[-]`reaction-avatars` doesn't work on URLs with a trailing slash[/-][+]`reaction-avatars` doesn't work on URLs with extra slashes[/+]kidonng commentedon Nov 16, 2021
Pardon for my ignorance, I just realized it's not about trailing slashes, but rather slashes in between. I corrected my previous title renaming.
I opened refined-github/github-url-detection#104 to mitigate this particular issue, but I'm afraid we can't do much about other links like https://github.com/fregante/github-url-detection/pull//104, unless someone is willing to test it case by case.
We are not GitHub after all and these edge cases seems pretty rare, it's OK things don't work there.
[-]`reaction-avatars` doesn't work on URLs with extra slashes[/-][+]`reactions-avatars` doesn't work on URLs with extra slashes[/+]