diff options
| author | Igor Minar | 2010-11-18 20:51:31 -0800 |
|---|---|---|
| committer | Igor Minar | 2010-11-18 20:51:31 -0800 |
| commit | 66c0bfaa8e84cadf2823c85fbc2adab8fe7e1ccd (patch) | |
| tree | cda272ba5a4a6f43d56b4bbb4bd6ef9c714d8977 /src/services.js | |
| parent | 1719b0aca5f02a9d70482c10ecb7643a9422b2f5 (diff) | |
| download | angular.js-66c0bfaa8e84cadf2823c85fbc2adab8fe7e1ccd.tar.bz2 | |
don't escape ! and : in hashPath
This is a temporary fix for Issue #158
Diffstat (limited to 'src/services.js')
| -rw-r--r-- | src/services.js | 4 |
1 files changed, 3 insertions, 1 deletions
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 : ''); } /** |
