Is there a way to know which deep link required authentication?

Community Contributor

When a user tries to access a Canvas a course that requires authentication, she is forwarded to the login page. We would like to know which course the user tries to access and perform some actions in a custom javascript, depending on the course id.


1. Try to access

2. When clicking the link in 1. you are forwarded to and then on to

3. At this point, my custom javascript is loaded. How can I find out that the user tries to access course 499?

In step 1, this header seems to contain the information (i=499): 


But that information does not seem to be available in step 3.


Labels (2)