redirect to the query's permalink if no querystring provided