Skip to content

Commit

Permalink
decode paths to handle unicode requests
Browse files Browse the repository at this point in the history
  • Loading branch information
bkendall committed Nov 12, 2024
1 parent 4081d34 commit 16e8072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ module.exports = function () {
return undefined;
};

const match = matcher(req.url);
const match = matcher(decodeURI(req.url));

if (!match) {
return next();
Expand Down

0 comments on commit 16e8072

Please sign in to comment.