I have a route that has query parameters. When activating the view, the query parameters are gathered and passed to a server side request. I don't know what the parameters are. I simply pass them to the server for processing.
In my viewmodel activate method, the context parameter is an object that contains the query parameters, plus two extra items: routeInfo and router. Durandal adds these to the query parameters. First, I don't want those passed on to the server side. Second, if my query parameters also contains those two names, then they get overwritten.
I've looked through the router code and find where they are added to my params (in dequeueRoute), but find no way to prevent the addition, nor a way to get just my query parameters without them.
Does anyone know how I can get the query parameters without the routeinfo and router? And out of curiosity, why are they added in the first place instead of a separate argument?