craft-localeredirector icon indicating copy to clipboard operation
craft-localeredirector copied to clipboard

Breaks AJAX requests to plugin controller

Open jimzarkadas opened this issue 8 years ago • 1 comments

I make an AJAX call to the URL "${window.baseUrl}actions/podioLead/newLead/" and it redirects it to "${window.baseUrl}/en/actions/podioLead/newLead/" which ends up to Bad request.

This URL points to an action of a custom plugin I have developed. Is there any way to prevent the redirect?

jimzarkadas avatar Sep 28 '17 16:09 jimzarkadas

Hey @jimzarkadas, I pushed a small fix to the ajax-fix branch. Can you test this out and let me know if it works?

jeremyfrank avatar Jan 25 '18 19:01 jeremyfrank