fix($location): allow 0 in path() and hash()