This is Alpha version of modification that allows for custom redirect after user logout. If anything is not working/ not clear, write it in the comments. I'll improve it.