mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-11-24 08:46:48 +08:00
Removing the returnUrl parameter from the Clone action in the admin to take the user to the cloned item's editor instead
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
@if (Authorizer.Authorize(Permissions.CreateContent, contentPart)) {
|
||||
<ul class="action-links action-links-item">
|
||||
<li class="action-link">
|
||||
<a href="@Url.Action("Clone", "Admin", new { Id = Model.ContentItem.Id, ReturnUrl = Request.RawUrl, Area = "Contents" })" itemprop="UnsafeUrl">@T("Clone")</a>
|
||||
<a href="@Url.Action("Clone", "Admin", new { Id = Model.ContentItem.Id, Area = "Contents" })" itemprop="UnsafeUrl">@T("Clone")</a>
|
||||
</li>
|
||||
</ul>
|
||||
}
|
||||
@@ -26,7 +26,7 @@
|
||||
</li>
|
||||
}
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Clone").Text, "Clone", "Admin", new { Id = contentItem.Id, ReturnUrl = Request.RawUrl, Area = "Contents" }, new { itemprop = "UnsafeUrl" })
|
||||
@Html.ActionLink(T("Clone").Text, "Clone", "Admin", new { Id = contentItem.Id, Area = "Contents" }, new { itemprop = "UnsafeUrl" })
|
||||
</li>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user