Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
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
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/';