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:
Benedek Farkas
2025-10-10 22:27:09 +02:00
parent 3dab053db8
commit b1c849a6c6
2 changed files with 2 additions and 2 deletions

View File

@@ -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>
}

View File

@@ -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>
}