This should be simple, but I am not finding the right solution anywhere.
// Routing file
...
.when('/pathA', templateA)
.when('/pathB', templateB)
.otherwise({ redirectTo: '/lollz' });
Both paths have a bunch of optional query parameters. The pages work when there are no parameters, but every time I pass a parameter, the router lands on the page /lollz. How can I make the router ignore the query parameters and concentrate only on the sub-paths?
.when('/pathA:query', templateA)to return the query parameters./pathA:query, you were able to see that the question mark?had gotten mangled. I am glad that helped you debug the problem.