Do not point to direct oauth2 login links on menu buttons.
Use local url that will redirect to those urls.

The code is much more lightweight now, doesn't have to load oauth2-specific code everytime a login
window is shown.