Conversation
| "name": "sandbox", | ||
| "nameWithOwner": "refined-github/sandbox", | ||
| "owner": "refined-github", | ||
| "path": "blob/bracket-in-path/foo%2F[bar]%2Fbaz", |
There was a problem hiding this comment.
It should show my commit: refined-github/sandbox@17041ac
|
One thing we should validate before going through with this is where we can find these URLs in the first place. If there's a situation where GitHub generates encoded URLs, there's a non-zero chance that decoding it will break it. |
|
In refined-github/refined-github#8358 I did something similar though |
? github-url-detection/index.test.ts Line 244 in 8f6bda3 github-url-detection/index.test.ts Line 259 in 8f6bda3 github-url-detection/index.test.ts Line 272 in 8f6bda3 |
break what exactly? |
Those URLs are made up. I mean where on GitHub can I find GitHub generating those URLs? We don't really have to support things that don't exist in the wild, this is what I mean. Is it only for files? |
What happens when you decode "folder/file-#1.md" and then re-compose the URL? Every feature that attempts to build a URL back from this will have to handle re-encoding manually. If this helper is used locally this won't happen, but I think it's exported right? I added some examples in the sandbox: https://github.com/refined-github/sandbox/tree/default-a/files |
|
I think overall it makes sense, but we should check what this change means downstream, with features that are already handling decoding and others needing to properly generate URL from already-decoded parts |
|
Can I click those links? We have a sandbox specifically to create REAL URLs.
You know how we ask for "test URLs" for each issue, right? We want to click those URLs and find the issue. What I asked is a repro where I can find GitHub generating those URLs. As always: REAL, existing, found in GitHub's own DOM and not typed out in the URL bar. Of course they exist. This exists too, but it's not found in GitHub's DOM so I'm not going to write code to handle a |





Closes #206