The currently accepted answer ends up adding an additional history entry in browsers at the moment as Google Maps redirects to a different URL format. To avoid that extra entry in the browser’s history, use the official Maps API url:
https://stackoverflow.com/questions/30544268/create-google-maps-links-based-on-coordinates