adaptlearning / adapt_authoring

A server-based user interface for authoring eLearning courses using the Adapt framework.
https://www.adaptlearning.org/
GNU General Public License v3.0
515 stars 284 forks source link

Dashboard breadcrumb always returns to 'My courses' #2238

Open canstudios-nicolaw opened 5 years ago

canstudios-nicolaw commented 5 years ago

Expected Behaviour

When viewing a course, the 'Dashboard' breadcrumb should take me back to the dashboard I opened the course from (My, Shared, All).

Actual Behaviour

'Dashboard' in the breadcrumbs always goes back to the 'My courses' dashboard rather than the dashboard I was most recently on.

Suggested this is fixed with prefs: https://github.com/adaptlearning/adapt_authoring/blob/master/frontend/src/modules/projects/views/projectsView.js#L44-L57

Steps to Reproduce

  1. Go to All courses
  2. Open a course
  3. Click dashboard breadcrumb

Versions

taylortom commented 5 years ago

Areas for discussion:

I think either way, using user prefs is a sensible way to do this.