prettified query permalink creation