Repository navigation
FIX: redirect legacy /targets to target registry - #2713
Merged
Roman Lutz (romanlutz) merged 3 commits intoSep 21, 2026
Merged
Roman Lutz (romanlutz) merged 3 commits into
Roman Lutz (romanlutz) merged 3 commits into
Conversation
- Add backwards-compatible redirect from /targets to /registry/targets - Update viewFromPath to recognize /targets as registry during route settlement - Add unit test in App.test.tsx asserting redirect and layout attribute Closes microsoft#2702
Assert the canonical target registry URL and ensure one Back navigation returns to the preceding route. Co-authored-by: Copilot App <[email protected]>
Roman Lutz (romanlutz)
approved these changes
Sep 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When target management was relocated to the Converter/Target Registry layout under
/registry/targetsin #2685,/targetswas removed from top-level routes without a compatibility redirect. As reported in #2702, incoming traffic to/targetsfell through to the wildcard*route and redirected to Home (/).This PR:
<Route path="/targets" element={<Navigate to="/registry/targets" replace />} />tofrontend/src/App.tsx.viewFromPathto recognize/targetsasregistryduring route settlement.frontend/src/App.test.tsxverifying the redirect to/registry/targetsand the layout's active view attribute.Closes #2702
Tests and Documentation
redirects legacy /targets to the target registryinfrontend/src/App.test.tsx.npm test -- App.test.tsx(77 passed, 77 total).npm run type-check(tsc --noEmit: 0 errors).npm run lint(eslint: 0 warnings, 0 errors).