Experimental project

This is a sandbox project, which contains experimental code for developer use only.

The Login Landing Page module is a lightweight module that enables the setting of the landing page to which a a user is redirected when they log in successfully.

The login landing page can be specified in the following ways:

  1. Global - A global default value such as '/admin/content'
  2. Role-based - A setting per role with the setting for the heaviest role taking precedence
  3. User-based - A setting for each individual user

The order of preference is Global first then role-based, then lastly user-based. Each method can be enabled or disabled from the module settings page.

Similar projects and how they are different

LoginToboggan
This is a D7 module which offers far more than a simple landing page. Login landing page is a lightweight module written for D8 to solve a common UX issue on client sites where no additional functionality is required.

Login redirect
Login redirect is another D7 module that uses a custom URL parameter to provide redirection on login. Login landing page differs in its hierarchical approach.

Login Destination
"The Login Destination module allows you to customize the destination that a user is redirected to after logging in, registering to the site (7.x), using a one-time login link or logging out (7.x). The destination can be an internal page or an external URL. It is possible to specify certain conditions like referring pages or user roles and make the destination depend upon them. You may use PHP snippets to provide custom conditions and destinations. It is also possible to keep users on the currently visited page after logging in or out."
Login landing page is a lightweight option with a more specific remit.

Clone with:
git clone git://git.drupal.org/sandbox/Alan-H/2796983.git login_landing_page

Project information