I don't know, but this doesn't change the previous behavior, just moves that particular detection somewhere else.
Maybe it's possible to set the course onto the request, so that it'll be available to the context on the wiki templates.