Logout( ) function

Why does the logout() function take the user to the home page?

I would like the user to stay on the page they are on

This can have different reasons.

  1. The page where the user is at when he do the → logout → is a password-protected one?
  2. The page where the user is currently at, when he logs out is setted up to be only for MEMBERS?
  3. Do you use ROLES and BADGES → THis also would affect the behaviour of your page.

Anyway → The behaviour can be changed by CODE.