From 71f55dc30ac5efbcbb94336af2a599a3894978ca Mon Sep 17 00:00:00 2001 From: DennisSchiefer Date: Tue, 10 Jul 2012 15:40:09 +0100 Subject: [PATCH] fix for old route links breaking --- WebContent/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebContent/main.js b/WebContent/main.js index 61fac3752..b41c848c4 100644 --- a/WebContent/main.js +++ b/WebContent/main.js @@ -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});