Thanks. I now see how the initial page is determined based on the following logic:
selectBestRoute(): string {
if (this._permissionChecker.isGranted('Pages.Administration.Host.Dashboard')) {
return '/app/admin/hostDashboard';
}
if (this._permissionChecker.isGranted('Pages.Tenant.Dashboard')) {
return '/app/main/dashboard';
}
return '/app/notifications';
}
Unfortunately, this requires a code change if you need to add a new or different route (i.e., initial page). It would be nice if there was the ability to assign the initial page to a Role and/or User using the Admin UI. Is it possible to put this on the roadmap?
How does the system currenlty know what page to display after a user logins?
It looks like the 'admin" user shows the Dashboard, but if I create another user, the Notifications page displays.
Thanks for adding this. Works great!
Al
I would also like to test the API using SwaggerUI. I'm logged in to the Angular app and I still get the "Current user did not login to the application!" message. It would be nice to have an "Authorize" button, but I don't understand how to implement it.
Is it possible to expose <a class="postlink" href="http://localhost:22742/api/TokenAuth/Authenticate">http://localhost:22742/api/TokenAuth/Authenticate</a> in the SwaggerUI and then add the Authorization Header to the request?
If not, could you please provide detailed instructions on how I could test the API using SwaggerUI?
Thanks,
Al
Thanks for your response. Sorry for the delay, but I just saw your response.
Your suggestion works okay to display the url in the page title, but sometimes it shows "undefined" when you navigate between different pages.
What I would like to do is get the Menu Item name from the localization files to display in the page title. Can someone advise how I could get the menu item name from the localization xml file?
<text name="OrganizationUnits">Organization Units</text>
For example, I would like Organizational Units to appear in the page title.
Thanks,
Al