문제

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.

도움이 되었습니까?

해결책

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/.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 drupal.stackexchange
scroll top