fix($location): throw if the path starts with double (back)slashes
Previously `$location` was rewriting such paths to remove not only the double slashes but also the first segment of the path, leading to an invalid path. In this change, we deem leading double (back)slashes an invalid path and now throw a `$location:badpath` error if that occurs. Closes #15365
P
Peter Bacon Darwin committed
353e3a6cd8b3a785b5f73a38236155621048522f
Parent: 6ce2913