Logout action direct from Navbar Link

I would like to have a Logout link directly on a Navbar that is loaded as an php include file.

I have read the Security documents including creating a Logout button - which works fine when I have this as a normal button on a page.

I am confused as to the best method if I want the logout to happen from the Navbar menu link.

Community Page
Last updated: