From 70fdce90fb30721628ef00be8e10f524c53764c9 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Wed, 15 Apr 2015 15:26:00 +0200 Subject: [PATCH] fix the location method that check the current route params --- app/coffee/modules/base/location.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/coffee/modules/base/location.coffee b/app/coffee/modules/base/location.coffee index a6c3fc46..0f94f454 100644 --- a/app/coffee/modules/base/location.coffee +++ b/app/coffee/modules/base/location.coffee @@ -30,7 +30,9 @@ locationFactory = ($location, $route, $rootscope) -> return $location $location.isInCurrentRouteParams = (name, value) -> - return $route.current.params[name] == value + params = _.merge($route.current.params, $location.search()) + + return params[name] == value return $location