mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-06-06 06:19:26 +08:00
don't escape ! and : in hashPath
This is a temporary fix for Issue #158
This commit is contained in:
@@ -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 : '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user