Base solution for your next web application

Activities of "ogrodski"

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.

I am using the ASP.NET Core & Angular 7 solution.

When I click on the Login link from the public website, the system redirects me to "http://localhost:4200/account/login?ss=true&returnUrl=http://localhost:45776/Account/Login" which displays the Angular app login. Then, when I login, the sytems redirects back to the public website Account controller, as per the returnUrl, which then redirects me back to the public website home page by default.

After login, I would like to redirect to a page in the Angular app based on the user's role or user preference.

Is this currently possible? If so, where is it documented how to do this? Any suggetions would be appreciated.

Thanks,

Al

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

Answer

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

Question

I'm using the .NET Core with Angular version and I would like to know how to dynamically update the page title to match the current page.

It looks like the <title> element is hard coded to the project name in the index.html file. This means every pages has the same title. Can we dynamically set the title based on the selected menu item or page?

Thanks,

Al

Showing 1 to 7 of 7 entries