In the general config settings, one can set a logoutPath, and one can use it using the logoutUrl
Global.
However, it says also in the docs: Note that Craft will automatically redirect users to your homepage after going here; there’s no such thing as a “logout page”.
In short; is there any other way to log a user out, besides "triggering" a visit to the predefined logoutPath
, which logs users out, but immediately redirects them to the homepage; as it would be more elegant and userfriendly to show some kind of "you've been logged out" message instead first.