Serialize reindex endpoint and fix delete redirect logic