We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 713c89a commit 5e630d9Copy full SHA for 5e630d9
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