add redirect_to_canonical callback