This MR accounts for customizations to jsonapi.base_path and running Drupal in a subdirectory in the JS app and PHP code.
approved this merge request
merged