diff --git a/src/core/summary.ts b/src/core/summary.ts index a2ee2acc..82266ff7 100644 --- a/src/core/summary.ts +++ b/src/core/summary.ts @@ -215,7 +215,7 @@ function getGitHubDiffUrl( oldPriority: StudyPriority, commit: string, ): string { - const path = `study/all-by-name/${study}`; + const path = `study/all-by-name/${study}.json5`; const pathHash = sha256(path); return `${url_utils.getGitHubStorageUrl()}/commit/${commit}#diff-${pathHash}`; } diff --git a/src/core/url_utils.ts b/src/core/url_utils.ts index 101c1775..4f838a84 100644 --- a/src/core/url_utils.ts +++ b/src/core/url_utils.ts @@ -51,8 +51,7 @@ export function getStudyRawConfigUrl( return ( 'https://github.com/search?type=code' + '&q=repo%3Abrave%2Fbrave-variations' + - '+path%3A%2F%5Eseed%5C%2Fseed.json%7C%5Estudies%5C%2F*.json5%2F+' + - `"%5C"name%5C"%3A+%5C"${encodeURIComponent(study)}%5C""` + `+path%3Astudies%2F+%22name%3A+%27${encodeURIComponent(study)}%27%22` ); }