Custom external page after logout

It’s not possible to do this at the moment. You can try to hack the code yourself:

You could file a feature request on Issues · nextcloud/server · GitHub (perhaps such a request already exists).