Redirect After Login

Local plugins ::: local_redirectafterlogin
Maintained by Luiggi Sansonetti, Dev E-learning Touch'
This Moodle plugin allows administrators to define custom redirection behavior after user login. It supports both global redirects and cohort-based redirects, giving you fine-grained control over post-login navigation.
Latest release:
12 sites
38 downloads
1 fans
Current versions available: 1

This Moodle plugin allows administrators to define custom redirection behavior after user login.

It supports both global redirects and cohort-based redirects, giving you fine-grained control over post-login navigation.

Features

Global Redirection

  • Redirect all users to a specific URL after login (e.g. /my/, a course, or a dashboard).
  • Option to exclude administrators and/or managers.

Cohort-based Redirection

  • Assign specific redirect URLs to individual cohorts.
  • Cohorts already mapped are hidden from the dropdown to avoid duplicates.
  • Add multiple cohort mappings in a single form.
  • Display of existing mappings in a table with delete icons.
  • Option to exclude admins and/or managers.

Redirection Logic

  1. If the user belongs to a cohort with a defined redirect → they are redirected to that URL (first match wins).
  2. If no cohort match → global redirect applies.
  3. If neither is defined → Moodle default behavior is used.
  4. Exclusion rules for admins and managers are respected.

Installation

For more information, see the official plugin installation guide.

Moodle Way

  1. Download the latest version or source code of the plugin compatible with your Moodle platform.
  2. Go to your platform's plugin installation page: Site administration > Plugins > Install plugins.
  3. Upload the plugin file and follow the installation process.

Manual

  1. Download the latest version or source code of the plugin compatible with your Moodle platform.
  2. Navigate to the moodle/local directory on your platform.
  3. Unzip the plugin into the directory and make sure that the folder containing the plugin files is named multiple_enrollments.

Using Git

  1. Open a terminal and navigate to the moodle/local directory on your platform.
  2. Clone the project using the following command:
    git clone https://github.com/E-learningTouch/moodle-local_redirectafterlogin redirectafterlogin

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3

Contributors

Luiggi Sansonetti (Lead maintainer)
Dev E-learning Touch': Lead Maintainer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
Please login to post comments