XF 2.2 Logout redirects to the wrong page.

Cannabis Ape

Active member
So my board url is domain.com/xxx however I got a custom homepage xxx/pages/overview and the standard forum page xxx/forums. Now when you logout it gets redirected to domain.com/xxx but as I'm not using that url I land on mydomain.com/xxx but the page will show the error page saying "Oop! etc", "The requested page could not be found.".

How do I fix it redirects to the page I want. (either home or forums)