Issue with $location.path and $routeParams


I have a route defined in my app.js like this

.when(’/uploadMap/:droneId’, {


Here is the problem:
When I use $location.path(’/uploadMap/5’) in the controller I get $routeParams with this inside {droneId:":droneId"} I can’t realize why is not sending the param inside $routeParams.

Thanks in advance for your help


What framework are you using to provide routing?


Route provider


This looks like an Angular question.

I don’t suppose you could give us a bit more code to work with (or preferably a link to a repo, or something)?

It does sound like a weird issue, but I can’t see anything wrong with the small amount of information you’ve given so far.