supports convert part of path to query string in redirect handler