Fixes for gif upload and root redirect