This is unclear and doesn't really tie well with your example.

Returning the `$location` object is for enabling chaining calls. What the function actually does is changes the query parameters, or prepares to in the next update.