use location.path variable for route params
Merge pull request #55 from AzureAD/fix_route_param

use location.path variable for route params