On my website https://fantastic-asia.de, the user can subscribe to a newsletter using the double opt-in procedure. After the user has clicked on the “abonnieren”-button, the newsletter registration modal opens. After entering all of the data, the user then clicks on “anmelden”. The form is then validated and a submit with the jump target “same Url” is sent so that the same Url is rendered after the POST. Now my question, can I suppress the page rendering in the controller? The intention behind this is that the user’s screen does not change, actually as it would be with a POST via Ajax.
My website is currently using an Ajax POST. But here is the big disadvantage, that the target url, in my case “post.php” is actually outside of Kirby, so I cannot use any Kirby methods to process the data.
With an AJAX request, use a content representation rather than calling an external script.
Thank you for your recommendation with the content presentation. That solved my problem right away.