Skip to content

Weird issue about permission guard in Angular after upgrade #24438

@espindl

Description

@espindl

I cannot tell if this is a bug or something else, but I think this is the right place to share and ask... Because there may be a small bug somewhere in the upgrade...

After upgrading to 10 (from 9.1) our Angular front-end started to act weird; if you refresh via browser in any URL, it was showing 403 and dropping to base URL. After searching and looking for the reason everywhere we tried and change the routings (that are using permission guard) from this:

data: {
        requiredPolicy: 'AbpIdentity.Roles.Create',
    },

to this old type:

data: {
      routes: {
        requiredPolicy: 'AbpIdentity.Roles.Create',
      },
    },

And refresh issue was solved. But knowing that the latter is an old format, we are wondering what might be the real issue and what might be a better solution?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions