I've seen these calls:
$location.url('/path/to/something/' + id + '/index');
and
$location.path('/path/to/something/' + id + '/index');
It seems they are doing the same thing.
From documentation I've found that URL is e.g. /path?a=b#hash, and path is a part of URL.
Is there any difference which of these setters to use ($location.path or $location.url) in case of the same argument?
path