I updated the theme to version 1.8 and then tested again, but got the same results.
Steps taken:
1) Login using an account
2) Click on course where user is assigned Instructor role
3) Hover on the dropdown menu in the upper right corner and click on "Switch role to..."
4) Select "Student"
5) View course as student
6) Hover on dropdown menu in upper right corner and click on "Return to my normal role"
7) Course list page opens
*When I click on the browser's back button (tested on Chrome and Firefox to same results), I am taken back to the course in the instructor role
No big changes to site - I don't know code so I have not added any custom code save for some custom CSS I added:
.editor_atto_menu .open ul.dropdown-menu {
right:inherit;
}
.btn, .btn a {
background-color: #848484;
}
We do use custom roles and have 23 total.
But I did get the sameon your demo site (https://adaptable.ws/demo/). I used the steps above after logging in as a teacher. When I clicked on return to my normal role after switching to a student role, I was directed to the course list instead of the course I was viewing.