Minor fixes in $location

Fixes the description of `rewriteLinks` and removes two redundant spaces.

Related to #9487.