Hi Hamzata,
In addition to enabling Anonymous, you should also:
Hope it helps,
Istvan
It depends on what is causing the redirect, but you could take a look at changing the index.html file in theme/web contents from:
originURI=/login.html
to
originURI=/index.html
note: that the login.html no longer will be shown when an user needs to sign in
You would need to enable anonymous users in your application. Without anonymous users, anyone using your application has to login, hence you see the login page for all users.
https://docs.mendix.com/refguide/anonymous-users/
I hope this helps. Good luck with your project!
After giving appropriate access roles to the anonymous users, my issue seems to have been resolved.