Add depth and format parameters onto the path when doing a redirect