A user reported inconsistent Google Maps onebox embedding, where some links return a 404 error while others work. awesomerobot identified that the issue is related to the zoom level in the URL, specifically when it includes decimal values (e.g., 15.5z), which the current regex fails to match. Falco confirmed the issue lies in the regex pattern in the Google Maps onebox engine. loic fixed the issue with a pull request, and zogstrip confirmed that the fix resolved the problem, with all Google Maps links now working correctly.
I’m facing a weird behavior with Google Maps link.
Sometimes, they properly embed, and sometimes the onebox request returns a 404. I couldn’t find a way to reproduce the issue consistently, but it’s very often. Just try to paste links, move the google maps camera or cropping, try again, etc…
I first thought about a rate limit, but it’s not. The links that work and those that don’t are the same here or on my forum. Example:
Does anyone have an idea about where this issue comes from? Google side? Discourse side? Should it be moved to Contribute > Bug?