Skip to content

reactions-avatars doesn't work on URLs with extra slashes #5076

Closed

Description

@ShadowJonathan

Please ensure:

  • 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

image

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.

Example URL

https://github.com//vector-im/element-meta/issues/56

Browser(s) used

Brave, Linux

Activity

  1. ShadowJonathan commented on Nov 15, 2021

    @ShadowJonathan
    Author

    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

  2. changed the title [-]Reaction avatars don't work on a particular link[/-] [+]Reaction avatars don't work on links with extra slashes[/+] on Nov 15, 2021
  3. cheap-glitch commented on Nov 15, 2021

    @cheap-glitch
    Contributor

    If we want to support this, it should probably be implemented in github-url-detection.

  4. 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
  5. kidonng commented on Nov 16, 2021

    @kidonng
    Member

    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.

  6. 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
  7. kidonng commented on Nov 16, 2021

    @kidonng
    Member

    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.

  8. 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
  9. linked a pull request that will close this issueURL `include` cleanup #5143on Dec 2, 2021
  10. linked a pull request that will close this issueUpdate dependencies #5180on Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions