From 59fa40ec0e851759d35fb0ea5fd01019d1403049 Mon Sep 17 00:00:00 2001 From: Mykhailo Kotsur Date: Thu, 29 Mar 2012 22:16:10 +0200 Subject: fix($location): search setter should not double-encode the value By mistake both the setter and helper function that composes the whole url were encoding the search values. Closes #751 --- src/ng/location.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ng/location.js b/src/ng/location.js index 1accb993..b0270432 100644 --- a/src/ng/location.js +++ b/src/ng/location.js @@ -335,7 +335,7 @@ LocationUrl.prototype = { if (paramValue === null) { delete this.$$search[search]; } else { - this.$$search[search] = encodeUriQuery(paramValue); + this.$$search[search] = paramValue; } } else { this.$$search = isString(search) ? parseKeyValue(search) : search; -- cgit v1.2.3