Handling post requests from widgets - redirecting to landing page

Lucia Long asked on February 25, 2020 23:47

I wondered how do you folks handle post requests and particularly ajax requests from widgets. E.g. I have a widget returning data from web service. This works fine whilst running from visual studio but once I run it on server, the url changes and deafaults to /landingpage/ controller rather then the /widget/ controller and that breaks the ajax. What is the best way forward? What is the official way to handle post requests in widgets?

Thanks,

L.

Recent Answers


Roman Hutnyk answered on February 26, 2020 13:00

It would be nice if you could provide more details.

So far it sounds like your local routing is different from one on server.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.