Skip to content

Commit

Permalink
fix: correct target
Browse files Browse the repository at this point in the history
  • Loading branch information
yin1999 committed Feb 7, 2023
1 parent 3138ebf commit 76ca7f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/redirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function fixRedirectsCase(oldPairs: Pairs, caseChangedTargets: string[]) {
);
const newPairs = oldPairs.map(([from, to]): Pair => {
const target = newTargets.get(to.toLowerCase()) ?? to;
return [from, to];
return [from, target];
});
return newPairs;
}
Expand Down

0 comments on commit 76ca7f2

Please sign in to comment.