webzunft / edd-helpscout

Easy Digital Downloads integration for HelpScout. A WordPress Plugin.
GNU General Public License v2.0
59 stars 13 forks source link

/edd-helpscout-api/customer_info #67

Open kmb40 opened 3 years ago

kmb40 commented 3 years ago

How is this directory created?

webzunft commented 3 years ago

This is a dynamic link, not a directory. EDD HS listens to any URL containing edd-helpscout-api. customer_info is the action that is then triggered.

Do you experience issues with this?

kmb40 commented 3 years ago

This has worked for years without issue.

Upon copying the WP site into another directory (as part of a migration), updating the path in the custom app in HelpScout, we receive a "Not Found" message in HelpScout.

Flipping the path back to the original location works.

webzunft commented 3 years ago

What is the new and old path? Are you using any services or firewalls that could block the URL? Cloudflare, Sucuri, etc. Could there be any other setup, e.g., in your .htaccess preventing the new route?

kmb40 commented 3 years ago

Old path - site.com New path - site.com/new_home No security barriers. Tested .htaccess and could not find an issue. Still testing as I suspect to find something there.

webzunft commented 3 years ago

Can you open https://site.com/new_home/edd-helpscout-api/customer_info in your browser? It should return {"html":"Invalid signature"}.

webzunft commented 3 years ago

@kmb40 did you see my reply or have you been able to resolve the problem?

kmb40 commented 3 years ago

Thanks for following up. Returns a 404 at: https://site.com/new_home/edd-helpscout-api/customer_info

The original "{"html":"Invalid signature"}" returns what you mentioned at https://site.com/edd-helpscout-api/customer_info

webzunft commented 3 years ago

Thanks for your feedback. Seems like it works on the original URL. Would that be a problem?

nosilver4u commented 2 years ago

Since it seems the location does not automatically account for sub-folders (we have a staging site in a sub-folder also), what we've done is to use this: define( 'EDD_HELPSCOUT_API_PATH', '/new_home/edd-helpscout-api/' );