wp_query is unreliable for routing. using request_uri instead.