Is there a way to redirect users to the front page after they log in, without using any additional modules other than the core modules. Right now they are redirected to their profiles.
closed as too broad by leymannx, mradcliffe, kiamlaluno♦ May 10 at 20:00
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
I don't believe it's possible to configure this in core, but there is a fairly well established and lightweight module that can do this for you - redirect_after_login - https://www.drupal.org/project/redirect_after_login
The query parameter
destination can be used to redirect any form submission, including the login form. Config your web server/Drupal to always add the query parameter such that http://example.com/user/login?destination=/ is the only URL to login. Upon login submission, users will be redirected to http://example.com/.