why not use `$location.path()`