Fixed query strings on routed pages

This didn't always work, but now it does!