angular.js/test/ng
Igor Minar aef0980063 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-06-24 22:32:55 -07:00
..
directive test($compile): fix IE specific test. 2013-06-24 21:02:01 -07:00
filter fix(date): correctly format dates with more than 3 sub-second digits 2013-05-07 22:59:46 +01:00
anchorScrollSpec.js fix($sniffer): report history false on Android < 4 2012-05-14 15:12:51 -07:00
animationSpec.js feat(ngAnimate): add support for animation 2013-04-02 14:05:06 -07:00
animatorSpec.js chore(minErr): replace ngError with minErr 2013-06-17 13:29:30 -07:00
browserSpecs.js fix($browser): should use first value for a cookie. 2013-05-11 09:28:14 -07:00
cacheFactorySpec.js chore(minErr): replace ngError with minErr 2013-06-17 13:29:30 -07:00
compileSpec.js fix($compile): disallow interpolations for DOM event handlers 2013-06-21 17:37:44 -07:00
controllerSpec.js chore(minErr): replace ngError with minErr 2013-06-17 13:29:30 -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 feat($http): add support for aborting via timeout promises 2013-05-20 14:15:04 -07:00
httpSpec.js fix($http): ensure case-insens. header overriding 2013-06-19 21:30:59 +01:00
interpolateSpec.js fix($compile): reject multi-expression interpolations for src attribute 2013-06-24 14:17:18 -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-06-24 22:32:55 -07:00
logSpec.js feat($log): add $log.debug() 2013-01-17 16:47:39 -08:00
parseSpec.js chore(minErr): replace ngError with minErr 2013-06-17 13:29:30 -07:00
qSpec.js feat($q): add $q.always() method 2013-04-24 20:56:18 +01:00
rootElementSpec.js feat($rootElement): added application root element 2012-06-02 14:50:58 -07:00
rootScopeSpec.js chore(minErr): replace ngError with minErr 2013-06-17 13:29:30 -07:00
snifferSpec.js feat($sniffer): Add support for supportsAnimations flag for detecting CSS Animations browser support 2013-05-08 15:40:37 -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