angular.js/test/ng
Igor Minar cbe31d8dfd fix($location): default to / for the url base if no base[href]
With the recent refactoring of $location service we changed this behavior
resulting in a regression.

Previously we thought that html5 mode always required base[href]
to be set in order for urls to resolve properly. It turns out that
base[href] is problematic because it makes anchor urls (#foo) to
always resolve to the base url, which is almost always incorrect
and results in all anchors links and other anchor urls (e.g. svg
references) to be broken.

For this reason, we should now start recommending that people just
deploy to root context (/) and not set the base[href] when using
the html5 mode (push/pop history state).

If it's impossible to deploy to the root context then either all
urls in the app must be absolute or base[href] must be set with the
caveat that anchor urls in such app won't work.

Closes #2762
2013-08-12 16:23:38 -07:00
..
directive feat(ngForm): Supports expression in form names 2013-08-07 13:59:41 -07:00
filter fix(numberFilter): always convert scientific notation to decimal 2013-07-24 12:06:19 -07:00
anchorScrollSpec.js fix($sniffer): report history false on Android < 4 2012-05-14 15:12:51 -07:00
browserSpecs.js fix($browser): should use first value for a cookie. 2013-05-11 09:28:14 -07:00
cacheFactorySpec.js fix($cacheFactory): return undefined when removing non-existent entry 2012-11-24 21:58:17 +01:00
compileSpec.js fix($compile): always instantiate controllers before pre-link fns run 2013-08-08 22:58:51 -07:00
controllerSpec.js chore(controller): allow setting map of controllers 2012-05-04 15:50:37 -07:00
documentSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
exceptionHandlerSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
httpBackendSpec.js fix($httpBackend): patch for Firefox bug w/ CORS and response headers 2013-02-14 16:52:02 -08:00
httpSpec.js fix($http): ensure case-insens. header overriding 2013-06-19 22:43:19 +01:00
interpolateSpec.js fix($parser): string concatination with undefined model 2012-09-06 15:49:48 -07:00
localeSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
locationSpec.js fix($location): default to / for the url base if no base[href] 2013-08-12 16:23:38 -07:00
logSpec.js fix($sniffer): report history false on Android < 4 2012-05-14 15:12:51 -07:00
parseSpec.js test(parse): Test for the parsing not invoking twice to get self 2013-05-21 14:41:22 -07:00
qSpec.js fix($q): call reject() even if $exceptionHandler rethrows 2013-08-12 16:23:37 -07:00
rootElementSpec.js feat($rootElement): added application root element 2012-06-02 14:50:58 -07:00
rootScopeSpec.js fix(scope): watches can be safely unregistered inside watch handlers 2013-07-11 22:07:15 +01:00
routeParamsSpec.js fix($route): support route params not separated with slashes. 2013-01-16 09:42:35 -08:00
routeSpec.js test($route): add tests for matching 'otherwise' routes 2013-03-08 12:01:09 -08:00
snifferSpec.js fix($sniffer): report history false on Android < 4 2012-05-14 15:12:51 -07:00
timeoutSpec.js fix($timeout): allow calling $timeout.cancel() with undefined 2012-06-04 17:43:14 -07:00
windowSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00