Litalino Flarum's default behavior is to return to the current page after login, and to the homepage after logout.
Please share your php flarum info
output and any relevant information about the changes you already made locally to your forum so we can identify which extension is already making that change.
Also, what kind of login are you using? The default password login or any of the social or global login solutions?
To change the logout redirect, you will need to write some javascript extension. You need to extend the Session.prototype.logout
method to add a return
query parameter to the logout URL. Luckily that parameter is already implemented in Flarum's backend so no PHP code will be necessary (except for registering the javascript file)