Hi,
What i am trying to do is when i go to this URL:
localhost/moodle/auth/oidc/?redirect=localhost/moodle/course/view.php?id=1,it should have take me to that particular course page.
For that,i added
if(isset( $_GET['redirect']))
{
$_SESSION['redirect']=$_GET['redirect'];
} in auth/oidc/index.php
and
if( isset($_SESSION['redirect']) && ($_SESSION['redirect'])!="")
{
$redirectUrl = $_SESSION['redirect'];
$_SESSION['redirect'] = '';
redirect($redirectUrl);
} else {
require_course_login($SITE);
}
in moodle/index.php.
But when i enter the above url it is redirecting me to localhost.moodle/user/edit.php. instead of redirecting to that course page
How to solve that.Can anyone help me?