Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Breadcrumb work on Post methods #86

Open
johnstaveley opened this issue Mar 11, 2021 · 1 comment
Open

Make Breadcrumb work on Post methods #86

johnstaveley opened this issue Mar 11, 2021 · 1 comment

Comments

@johnstaveley
Copy link

I have the following method:

        [Breadcrumb("Usage", FromAction = "Index", FromController = typeof(ReportsController))]
        [HttpPost] // TODO: Breadcrumb does not work on any method decorated with Post
        [HttpGet]
        public async Task<IActionResult> Usage(StudentUsageDataModel usageModel)

If I remove [HttpPost] the breadcrumb appears, if present, it does not. Is this a bug or intentional? Can it be fixed?

@dIeGoLi
Copy link

dIeGoLi commented Feb 8, 2022

As an input. Breadcrumbs by attribute do not to work on HttpPost for me as well. But they work when defined manual. I would be happy as well if they would work as attribute. My use case is when i want to post a form, but the modelstate is not valid, then i return the page from the post controller action. If save is successfull the action is redirected to the corresponding get of the object created, where breadcrumbs work as attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants