rewrite path query view