diff options
| author | Misko Hevery | 2010-04-03 20:19:55 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-04-03 20:23:16 -0700 |
| commit | 5dcf9bb4feb144b3a54a43524210dd7d0bb4213e (patch) | |
| tree | 966014f5f83409766d8d84caf6e772d1398d385f /src/services.js | |
| parent | a80a61839a66d244c8bb14bbe2975746e02516c8 (diff) | |
| download | angular.js-5dcf9bb4feb144b3a54a43524210dd7d0bb4213e.tar.bz2 | |
browser is now injectable into the system
Diffstat (limited to 'src/services.js')
| -rw-r--r-- | src/services.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services.js b/src/services.js index 59c21d36..16b48031 100644 --- a/src/services.js +++ b/src/services.js @@ -24,9 +24,9 @@ angularService("$location", function(browser){ } } var hashKeyValue = toKeyValue(location.hashSearch); - return location.href + - (location.hashPath ? location.hashPath : '') + + var hash = (location.hashPath ? location.hashPath : '') + (hashKeyValue ? '?' + hashKeyValue : ''); + return location.href.split('#')[0] + '#' + (hash ? hash : ''); } browser.watchUrl(function(url){ location(url); |
