Created page with security and then the logout function as per usual. Then created dynamic action on mouse click for logout to run. It runs but returns empty and does not redirect as setup on success of the server action.
Attached the action file and the page for you to maybe check. Thanks
Hello,
Are you sure you added the components through the UI and not by copy-pasting from some other pages?
Browser component is missing from the page, as well as the preloader component - that is why it is not redirecting.
My bad - I did, to try and save time copy the header and scripts to new page, in which I did not confirm that all were copied. Rookie mistake. Will make sure next time. Thanks for the help @Teodor and sorry for the effort