[Query-Params-New] QP replace does not affect transitions between routes

This is a test and a fix for #4572. @machty has some ideas about how router.js api might be better for this so I'll redo this PR based on his feedback.