It is very important to limit as much as possible any type of redirect but if it is not possible to do without it is advisable to use those 301.
The use of automatic redirects can result in longer or shorter redirect sequences that search engines may consider system errors or redirection loops to significantly damage the SEO of any project. Art. id:27 | https://www.toppersystem.com/extra_information.php?lang=en