fix for old route links breaking

This commit is contained in:
DennisSchiefer 2012-07-10 15:40:09 +01:00
parent 1746946b70
commit 71f55dc30a

View File

@ -278,7 +278,7 @@ OSRM.parseParameters = function(){
}
// set active alternative (if via points are set or alternative does not exists: automatic fallback to shortest route)
OSRM.G.active_alternative = params.active_alternative;
OSRM.G.active_alternative = params.active_alternative || 0;
// compute route
OSRM.Routing.getRoute({keepAlternative:true});