We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 89bbe0f + 5e630d9 commit 4b0b20dCopy full SHA for 4b0b20d
1 file changed
src/server.js
@@ -177,7 +177,7 @@ app.use(async (req, res) => {
177
}
178
179
const locationState = store.getState().router.location;
180
- if (req.originalUrl !== locationState.pathname + locationState.search) {
+ if (decodeURIComponent(req.originalUrl) !== decodeURIComponent(locationState.pathname + locationState.search)) {
181
return res.redirect(301, locationState.pathname);
182
183
0 commit comments