We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a8ae94 commit 0fbf584Copy full SHA for 0fbf584
test/ng/locationSpec.js
@@ -177,6 +177,15 @@ describe('$location', function() {
177
expect(url.absUrl()).toBe('http://www.domain.com:9877/a');
178
});
179
180
+ it('should not rewrite when hashbang url is not given', function() {
181
+ initService(true, '!', true);
182
+ inject(
183
+ initBrowser('http://domain.com/base/a/b', '/base'),
184
+ function($rootScope, $location, $browser) {
185
+ expect($browser.url()).toBe('http://domain.com/base/a/b');
186
+ }
187
+ );
188
+ });
189
190
it('should prepend path with basePath', function() {
191
url = new LocationHtml5Url('http://server/base/');
0 commit comments