Change login page based on condition.
I have a requirement of changing the first page shown immediately after the login.
I have managed to explore the BaseViewModule schema.
From the BaseViewModule schema it is inferred that getHomePagePath: function() returns the path of the page that has to be loaded.
Here, I have a scenario based on a logged in user value, the display page should be either of these two pages below,
1.#PortalMainPageModule (for one condition)
2.#CardModuleV2/UserPageV2/edit/268b5da7-2ede-4b32-8bbe-9af04721ebba (for another condition) --> Logged in users contact edit page
How could I achieve this by inheriting/extending the BaseViewModule schema, or what development action should be carried out.
Please guide me on this.
Thanks in advance!