Skip to content

Commit b365a76

Browse files
committed
Add variant query parameter to speller variant badge links
Variant badges now link to typosreport/?variant={code} to show the specific variant's test report instead of the default report. Example: S-Jok badge links to /lang-fkv/typosreport/?variant=Jok
1 parent 3f18a94 commit b365a76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/js/spellertable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ async function addSpellerSuggQuality(repo) {
328328
for (let i = 0; i < variantsData.length; i++) {
329329
const variant = variantsData[i];
330330
const variant_link = document.createElement('a');
331-
variant_link.setAttribute('href', '/' + repo.name + '/typosreport/');
331+
variant_link.setAttribute('href', '/' + repo.name + '/typosreport/?variant=' + variant.code);
332332
const variant_image = document.createElement('img');
333333
const variantFile = `speller-suggestions-${variant.code}.json`;
334334
variant_image.setAttribute(

0 commit comments

Comments
 (0)