Site URL

Hi I've installed Opigno under /var/www/html/lms. The problem is, when I create course, the link given in the course is localhost/groups/2 instead of localhost/lms/groups/2 As an experiment, I changed code in namespace Drupal\opigno_learning_path, file: LearningPathAccess.php from $host = \Drupal::request()->getSchemeAndHttpHost(); to $host = \Drupal::request()->getSchemeAndHttpHost()."".\Drupal::request()->getBaseUrl(); Which sorted out links generated for emails. However, there are links, for example for the Notifications (when creating a learning path, for example) and the link generated is still localhost/groups/2. Checking the opigno_notifications table, the link appears as /groups/2. I thought, maybe there's one place where I can change the link generation, but it turns out there are many possible places where links are generated and I think it would be a waste of time and resources to hardcode all of these needed changes. Is there a place in settings or code where I can change the base path to reflect that I'm serving Opigno from a subdirectory? I've checked in the Drupal docs and most advise either creating a drushrc.php in the sites/default directory or using a drush.yml file. Neither of the options work, neither does editing the .htaccess file (I don't see how that would affect links generated in code) and using a virtualhost won't solve that either. Is there any fix for this? Thanks. Ipeleng