mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-09 15:24:43 +00:00
don't escape ! and : in hashPath
This is a temporary fix for Issue #158
This commit is contained in:
parent
1719b0aca5
commit
66c0bfaa8e
1 changed files with 3 additions and 1 deletions
|
|
@ -248,7 +248,9 @@ angularServiceInject("$location", function(browser) {
|
||||||
*/
|
*/
|
||||||
function composeHash(loc) {
|
function composeHash(loc) {
|
||||||
var hashSearch = toKeyValue(loc.hashSearch);
|
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 : '');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue