don't escape $ in hashpath either

This commit is contained in:
Igor Minar 2010-11-18 22:39:25 -08:00
parent 66c0bfaa8e
commit 50ef1f8e35

View file

@ -249,7 +249,7 @@ angularServiceInject("$location", function(browser) {
function composeHash(loc) {
var hashSearch = toKeyValue(loc.hashSearch);
//TODO: temporary fix for issue #158
return escape(loc.hashPath).replace(/%21/gi, '!').replace(/%3A/gi, ':') +
return escape(loc.hashPath).replace(/%21/gi, '!').replace(/%3A/gi, ':').replace(/%24/gi, '$') +
(hashSearch ? '?' + hashSearch : '');
}