Closed brendanheywood closed 2 years ago
Hi @brendanheywood - I can't see what this achieves except passing the $courseid
to require_login
. There is no change in navigation afaict.
Passing the $courseid to require_login changes the way core behaves and it adds the course context to the crumb trail and other navigation elements. So from a course you click into your plugin, and then you click into various core navigation and get back to where you came from. Without it you end up at the site level instead of where you started.
Eg:
Compare with:
vs without:
I thought this was the case but it does not work for me. The breadcrumbs do not change. It remains "Dashboard > Profile > My certificates".
Ahhh I see! Sorry. I was doing it as the user, not the administrator. Cherry-picking.
469