From 66c0bfaa8e84cadf2823c85fbc2adab8fe7e1ccd Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 18 Nov 2010 20:51:31 -0800 Subject: don't escape ! and : in hashPath This is a temporary fix for Issue #158 --- src/services.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/services.js b/src/services.js index e8006496..1efd5234 100644 --- a/src/services.js +++ b/src/services.js @@ -248,7 +248,9 @@ angularServiceInject("$location", function(browser) { */ function composeHash(loc) { var hashSearch = toKeyValue(loc.hashSearch); - return escape(loc.hashPath) + (hashSearch ? '?' + hashSearch : ''); + //TODO: temporary fix for issue #158 + return escape(loc.hashPath).replace(/%21/gi, '!').replace(/%3A/gi, ':') + + (hashSearch ? '?' + hashSearch : ''); } /** -- cgit v1.2.3