BZ-9549: use location instead of $route

Signed-off-by: Paden <padenportillo@gmail.com>