mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-06-06 06:19:26 +08:00
don't escape $ in hashpath either
This commit is contained in:
@@ -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 : '');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user