Ignore query strings when deriving course from URL.