[Mobile - Canvas Student] Fix URL on Syllabus loading

Problem statement:

There is no way to access the course ID from the Syllabus on the Canvas Student mobile app. This is accessible in 2 ways, however when loading pages, via a Javascript variable ENV.COURSE.id and the window.location (URL) of WebView session, e.g. qut-prod.instructure.com/courses/123/pages/gettingstarted

Unfortunately, when the Syllabus is loaded, the variable is not added and the window.location (url) is set to the root canvas address, e.g. qut-prod.instructure.com. For consistency, it should be https://qut-uat.instructure.com/courses/7902/assignments/syllabus when loading

 

Proposed solution:

Set the window.location url load path to be the expected path or add the ENV.COURSE.id variable also to any WebView that is created, e.g. Syllabus.

 

User role(s):

admin

2 Comments
AlexAnguix
Community Explorer
Author

Pages on Canvas Student mobile app. Note the missing ENV.COURSE.id and the window.location.href.

AlexAnguix_0-1742969694594.png

 

Syllabus on Canvas Student mobile app. Note the missing ENV.COURSE.id and the window.location.href.

AlexAnguix_1-1742969704647.png

 

 

nathanatkinson
Community Team
Community Team
Status changed to: Open