- if (!window.location.hash) {
- OSM.route.moveListenerOff();
- map.once('moveend', OSM.route.moveListenerOn);
+ if (!window.location.hash || window.location.hash.match(/^#?c[0-9]+$/)) {
+ OSM.router.moveListenerOff();
+ map.once('moveend', OSM.router.moveListenerOn);