OrchardCMS / OrchardCore

Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
https://orchardcore.net
BSD 3-Clause "New" or "Revised" License
7.42k stars 2.39k forks source link

After the content publishing is successful, you should skip to adminRouteValues by default, not Edit #5752

Closed chinasqzl closed 6 months ago

chinasqzl commented 4 years ago

The contents of the ticket, can not be modified after publication, after the publication is successful, I will modify the permissions, and modify the adminRouteValues。

var adminRouteValues = (await _contentManager.PopulateAspectAsync(contentItem)).AdminRouteValues;

image

chinasqzl commented 4 years ago

Same as CreatePOST:

if ((!string.IsNullOrEmpty(returnUrl)) && (!stayOnSamePage)) { return LocalRedirect(returnUrl); }

        var adminRouteValues = (await _contentManager.PopulateAspectAsync<ContentItemMetadata>(contentItem)).AdminRouteValues;

        if (!string.IsNullOrEmpty(returnUrl))
        {
            adminRouteValues.Add("returnUrl", returnUrl);
        }

        return RedirectToRoute(adminRouteValues);
sebastienros commented 4 years ago

Can you provide some repro steps and what you would expect to see. It's hard to understand what issue you are describing here.

chinasqzl commented 4 years ago

Inventory management warehousing entry 、 outbound delivery order
Cannot be changed after publication, nor can administrators @sebastienros

sebastienros commented 4 years ago

I think the request here is to redirect to the content item list instead of staying on the edit page, when publish is invoked. But I might be wrong :/

Piedone commented 6 months ago

Closing due to no reply from the author.