Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
[Bug] Fix start POI always in EN when coming from IA (#1041)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbecquet authored Mar 16, 2021
1 parent 5d2a9d0 commit 263cefc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/middlewares/og_meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module.exports = function(config) {
}

return function(req, res, next) {
const placeUrlMatch = req.originalUrl.match(/place\/(.*)/);
const placeUrlMatch = req.originalUrl.split('?')[0].match(/place\/(.*)/);
const locale = res.locals.language;
let poiId;
if (placeUrlMatch && placeUrlMatch.length > 0) {
Expand Down

0 comments on commit 263cefc

Please sign in to comment.