fix($location): allow empty string URLs to reset path, search, and hash
Currently, providing '' to $location#url will only reset the hash, but otherwise has no effect. This
change brings the behaviour of $location#url more inline with window.location.href, which when
assigned to an empty string loads the page's base href.
Before:
$location.url() // http://www.example.com/path
$location.url('') // http://www.example.com/path
After:
$location.url() // http://www.example.com/path
$location.url('') // http://www.example.com
Fixes #10063
Closes #10064 N
Neville Samuell committed
7812dfcee8ab98cbf38261f9948d9541656bf554
Parent: 00b623e
Committed by Pawel Kozlowski <pkozlowski.opensource@gmail.com>
on 11/22/2014, 3:30:41 PM