Redirect After Log in

Redirect After Log in

by Armando Silva -
Number of replies: 1

Hi my intended goal is:

  • User is on front page...clicks on a category (gets redirected to log in page) - this is done
  • User logs in (should redirect back to the category they clicked on)

Moodle 3.3.1+ (Build: 20170810)


Inside /course/render.php I modified the course link to be as follows:

           $categoryname = html_writer::link(new moodle_url('/login/index.php'), $categoryname);

But after logging in they get redirected to front page instead of the course they had clicked on.

Average of ratings: -
In reply to Armando Silva

Re: Redirect After Log in

by Armando Silva -

Basically I would like:

Front Page -> Login -> Category

but I have:

Front Page -> Login -> Front Page