From 2a833d53eafb93aa6f5cbd3708a494ce4116e666 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Mon, 10 Nov 2014 20:20:05 +0100 Subject: [PATCH] Fixed critical bug in frontend routing I have no idea how this could ever work. --- public_html/js/Router.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public_html/js/Router.js b/public_html/js/Router.js index a6e00687..4aa1be95 100644 --- a/public_html/js/Router.js +++ b/public_html/js/Router.js @@ -156,7 +156,8 @@ App.Router = function(_, jQuery, promise, util, appState, presenterManager) { value = parseComplexParamValue(value); } params[key] = value; - compare = compare.replace(compareParts[j], possibleRouteParts[j]); + compareParts[j] = possibleRouteParts[j]; + compare = compareParts.join('/'); } } }