Issue Details (XML | Word | Printable)

Key: MDL-17584
Type: Task Task
Status: Open Open
Priority: Critical Critical
Assignee: Petr Škoda (skodak)
Reporter: harsha kiran
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Page redirection after ldap login

Created: 10/Dec/08 01:36 PM   Updated: 31/Mar/09 11:52 PM
Component/s: Authentication
Affects Version/s: 1.9.3
Fix Version/s: None

Environment: Ubuntu running on a dell inspiron

Database: MySQL
Participants: harsha kiran, Petr Škoda (skodak) and T. Logans
Security Level: None
Difficulty: Easy
Affected Branches: MOODLE_19_STABLE


 Description  « Hide
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



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
T. Logans added a comment - 31/Mar/09 11:52 PM
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/';