Multiple sites routed to one codebase has the subdirectory name as prefix on the links
Try to set the $baseurl variable in settings.php, at Drupal site directory. Read the documentation around this variable in the settings file.