Moodle

Page redirection after ldap login

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 1.9.3
  • Fix Version/s: None
  • Component/s: Authentication
  • Labels:
    None
  • Environment:
    Ubuntu running on a dell inspiron
  • Database:
    MySQL
  • Difficulty:
    Easy
  • Affected Branches:
    MOODLE_19_STABLE

Description

Hi

I am currently using ldap authentication for login. But after the page is authenticated i would like to redirect it to a different URL other than the course page. How can i do this. Please suggest.

Thanks,

Harsha

Activity

Hide
T. Logans added a comment -

If you want to redirect the user directly after login, you can edit the page /login/index.php at line 210. Add the following:
$urltogo = 'YOUR URL HERE';

Replace "YOUR URL HERE" with the URL you want the user redirected to. If you want the user redirected to a place within your Moodle, you can use:
$CFG->wwwroot . '/FOLDER TO REDIRECT TO/'

So...

$urltogo = $CFG->wwwroot . '/FOLDER TO REDIRECT TO/';

Show
T. Logans added a comment - If you want to redirect the user directly after login, you can edit the page /login/index.php at line 210. Add the following: $urltogo = 'YOUR URL HERE'; Replace "YOUR URL HERE" with the URL you want the user redirected to. If you want the user redirected to a place within your Moodle, you can use: $CFG->wwwroot . '/FOLDER TO REDIRECT TO/' So... $urltogo = $CFG->wwwroot . '/FOLDER TO REDIRECT TO/';
Hide
Petr Škoda (skodak) added a comment -

this funct ionality is not part of moodle code, please use general forums for support requests, thanks

Show
Petr Škoda (skodak) added a comment - this funct ionality is not part of moodle code, please use general forums for support requests, thanks

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: