don't escape ! and : in hashPath

This is a temporary fix for Issue #158
This commit is contained in:
Igor Minar 2010-11-18 20:51:31 -08:00
parent 1719b0aca5
commit 66c0bfaa8e

View file

@ -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 : '');
}
/**