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.