Fix the generated url so files go where they are expected