Leuchtfeuer / locate

The users country and preferred language and other facts will be detected. Depending on configurable rules the user can be redirected to other languages or pages. New functionality can be added easily.
https://www.Leuchtfeuer.com
GNU General Public License v2.0
9 stars 14 forks source link

Ajax calls with empty body #22

Closed JeroenVeghel closed 3 years ago

JeroenVeghel commented 3 years ago

Hello,

I'm making an ajax request which get redirected by this plugin. The problem is that postdata is missing in the redirected call. Is that a known issue? Or am I missing something in my configuration?

elbebass commented 3 years ago

Sorry for the late reply. If I understood your problem correctly, you are making an AJAX call to a specific page and/or function passing POST data. This is intercepted by the locate extension and redirected. This is generally desired and not otherwise wanted by specification (https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html). But what should be easy to do and solve your problem would be to set up a condition on the target page of the Ajax call. In our documentation we have described how to switch on the extension for single pages via condition [see https://docs.typo3.org/p/leuchtfeuer/locate/master/en-us/Admin/Index.html#enabling-this-extension]. Similarly, I would simply turn off our extension on the target page of your Ajax call, which should then fix your problem or not execute the redirect at all.

I hope this helps.