As long as courseA and courseB are consistant you can read the string and then display the content based upon the course string(A or B).
Javascript:
theURL=location.href
This gets the URL location, you can then parse it out using Javascript commands, and after the parse, set a lectora variable to that string, like courseA or courseB