subscribepro-magento2-ext icon indicating copy to clipboard operation
subscribepro-magento2-ext copied to clipboard

My Product Subscriptions page does not work when Magento is installed in a subdirectory

Open imkingdavid opened this issue 7 years ago • 0 comments

I am able to reproduce this issue using a Magento installation in a subdirectory on an Apache server.

Steps to reproduce:

  1. Install Magento 2.1.4 into a subdirectory (I recommend using Apache). Install and configure SP extension 1.0.14.
  2. Create a subscription to a subscription product.
  3. Navigate to My Product Subscriptions in the My Account section. The page should load just fine this time.
  4. Navigate away from this page and then back to it. The loading spinner will keep spinning. If you check the Dev Tools console, you will see an error:
Failed to load resource: https://{DOMAIN}/rest/V1/swarming_subscribepro/me/subscriptions?_={TOKEN} the server responded with a status of 404 (Not Found)

Note in the above error message that the /rest/V1... path begins at the domain root rather than the subdirectory into which Magento was installed.

In my testing, even after clearing the cache I receive the same error message.

imkingdavid avatar Apr 18 '17 20:04 imkingdavid