Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Conversation

stephen-standridge
Copy link

Nearly identical pull request as this, but much safer with handling forward slashes.

We ran into an issue using MAMP and serving Statamic from a subdirectory would break this plugin, because the AJAX urls were hardcoded.

We've taken the approach of setting a _site_root variable within a script that is placed on the fileclerk field template instead of using a data attribute to avoid making an extra jQuery call every time you interact with fileclerk.

Thanks for the plugin, and let me know if you have any suggestions for this code!

- Fixes an issue where serving Statamic from a subdirectory breaks this plugin, because the AJAX urls were hardcoded
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant