`actionable-pr-view-file` doesn't handle bracket `[]` correctly · Issue #8473 · refined-github/refined-github · GitHub
Skip to content

actionable-pr-view-file doesn't handle bracket [] correctly #8473

Description

@kidonng

Description

Brackets in path need to be be escaped

  • [: %5B
  • ]: %5D

How to replicate the issue + URL

  1. Open https://github.com/refined-github/sandbox/pull/114/files
  2. Open the three dots menu of the changed file
  3. Open one of the "View ..." link (for example "View file")
  4. See 404

Correct path: https://github.com/refined-github/sandbox/blob/bracket-in-path/foo/%5Bbar%5D/baz
Wrong path reported by RGH: https://github.com/refined-github/sandbox/blob/bracket-in-path/foo/[bar]/baz

Other affected features:

  • more-file-links

Extension version

25.5.18

Browser(s) used

Chrome

Token ⚠️

  • I set a token in the options page. I understand that some features require a token to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions