Side Menu Changed from Vertical to horizontal

Hi,

I was trying to implement SSO login post changes were done i was able to successfully login but the menu which was in vertically visible got changed to horizontal and also CSS to that menu also got changes. There is and option beside logout button to switch to vertical menu but i want to disable new menu layout of horizontal.

Screenshot from 2025-07-11 21-07-01

Please explain your problem in more detail and provide a test project or at least relevant code examples.

Hi,

I had added below code to handle Ldap login using oauth. adding this my code is working but the theme got changed from vertical to horizontal. There is an option near timezone with four box if i click on that i am redirect to my old theme. Somehow main-screen-top-menu.xml is getting open instead existing menu.


@Bean
    @Order(JmixOrder.HIGHEST_PRECEDENCE + 100)
    public SecurityFilterChain securityFilterChain(HttpSecurity http,
                                                   CustomDefaultJmixOidcUserService jmixOidcUserService,
                                                   ClientRegistrationRepository clientRegistrationRepository) throws Exception {
        http.apply(SecurityConfigurers.uiSecurity())
                .and()
                .oauth2Login(oauth2Login -> {
                    oauth2Login.userInfoEndpoint(userInfoEndpoint -> {
                        userInfoEndpoint.oidcUserService(jmixOidcUserService)
                                .and()
                                .successHandler((request, response, authentication) -> {
                                    //redirect to the main screen after successful authentication using auth provider
                                    new DefaultRedirectStrategy().sendRedirect(request, response, "/#main");
                                });
                    });
                })
                .logout(configurer -> {
                    configurer.logoutSuccessHandler(oidcLogoutSuccessHandler());
                });
        return http.build();
    }

Existing Theme
Screenshot from 2025-07-14 13-12-02

Changed Theme
Screenshot from 2025-07-14 13-07-24

Hi,

Do you have several main screens in your app? What screen is defined by jmix.ui.main-screen-id?

Regards,
Gleb

jmix.ui.main-screen-id = MainScreen

@UiController("MainScreen")
@UiDescriptor("main-screen.xml")
@Route(path = "main", root = true)
public class MainScreen extends Screen implements Window.HasWorkArea {
 private void initMenuIcons() {
        Stream.of(SideMenuIcon.values())
                .forEach(sideMenuIcon -> {

                    final SideMenu.MenuItem menuItem = sideMenu.getMenuItem(sideMenuIcon.getMenuId());

                    if (menuItem != null) {
                        menuItem.setIcon(sideMenuIcon.source());
                    }

                });
    }
}

When i try normal jmix login MainScreen is getting open
But when i try with Sso login it default open in main-screen-top-menu.xml

Am I correct that your project contains 2 main screens? Do you have a custom code that determines which main screen to show a user? If so, try setting a breakpoint in the main-screen-top-menu and debug debugging to see where it is created.