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

API URL Doesn't Support Non-Root Storefronts

Open klaser opened this issue 7 years ago • 1 comments

I have an M2 store located at /shop/. The Subscribe Pro extension attempts to send API requests to itself using the root path: /rest/V1/swarming_subscribepro/me/subscriptions.

It does not appear to attempt to resolve the base url for the store.

Example file: subscribepro-magento2-ext/view/frontend/web/js/action/change-shipping-address.js:12:

return storage.post(
                '/rest/V1/swarming_subscribepro/me/subscriptions/update-shipping-address',
                JSON.stringify({subscriptionId: subscriptionId, address: address}),
                false
            )

klaser avatar Jun 28 '17 16:06 klaser