Redirect Url Management: Implement workspace#22624
Conversation
|
Claude finished @Zeegaan's task in 3m 50s —— View job PR ReviewTarget: Adds a "Redirect URL Management" workspace info app to the document workspace, surfacing per-document redirect URLs alongside the existing URL and audit-log info apps.
Important
Suggestions
Request ChangesThe architectural violation (direct generated-service call from an element) should be addressed before merging. The functionality itself looks good and the UI matches the v13 reference. Consider creating the repository + data source layer (which would also fix the same issue in the existing dashboard element as a nice bonus 🎁). |
There was a problem hiding this comment.
Pull request overview
Implements the missing “Redirect URL Management” info app inside the Document workspace in the new backoffice, wiring it up to existing redirect-management management API endpoints.
Changes:
- Adds a new Document workspace info app that fetches and displays redirect URLs for the current document.
- Registers new redirect-management manifests under the documents package.
- Hooks the info app up to the action event context to refresh redirects on relevant entity reload events.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/Umbraco.Web.UI.Client/src/packages/documents/documents/redirect-management/manifests.ts | Aggregates redirect-management extension manifests for the documents package. |
| src/Umbraco.Web.UI.Client/src/packages/documents/documents/redirect-management/info-app/manifests.ts | Registers the “Redirect URL Management” workspace info app for non-new document entities. |
| src/Umbraco.Web.UI.Client/src/packages/documents/documents/redirect-management/info-app/document-redirect-management-workspace-info-app.element.ts | New Lit element rendering the redirect list and fetching status/redirect data from the management API. |
| src/Umbraco.Web.UI.Client/src/packages/documents/documents/manifests.ts | Adds redirect-management manifests to the documents package manifest bundle. |
…irect-management/info-app/document-redirect-management-workspace-info-app.element.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- Drop duplicate `unique` guards from data source (kept at repository boundary) - Drop unnecessary `?? []` fallbacks (`items` is non-nullable in the API type) - Localize hardcoded zero-results strings in dashboard - Simplify redundant length check in info-app `#getTargetUrl` - Drop unused `userIsAdmin` from `UmbDocumentRedirectStatusModel`
leekelleher
left a comment
There was a problem hiding this comment.
Tested out, works as described! 🚀 Good work @Zeegaan!
I addressed the feedback from Claude[bot] and GitHub Co-pilot, as well took the opportunity to refine the dashboard-redirect-management.element.ts code, (all minor things that I'd been thinking about for a while).
Fixes #22619
Notes
It seems that when implementing the new backoffice, the "Redirect URL Management" workspace was missed.

Here is how it looks in v13:
This PR now remedies that, by implementing a "Redirect URL Management" workspace.
All the backend endpoints was already implemented, so this was just a case of creating the workspace and using the endpoints 😁
How it looks with the new workspace:

How to test
https://localhost:44339/test