fix(catalog): show not-found instead of falling back to first route on unknown entity sub-paths (#34081)
* fix(catalog): show not-found instead of falling back to first route on unknown entity sub-paths Signed-off-by: benjdlambert <ben@blam.sh> * fix(catalog): address PR review feedback Signed-off-by: benjdlambert <ben@blam.sh> * fix(core-compat-api): update entity page conversion test for new not-found behavior Signed-off-by: benjdlambert <ben@blam.sh> * fix(catalog): use NotFoundErrorPage and drop redundant route sort Signed-off-by: benjdlambert <ben@blam.sh> * fix(catalog): split slash trimming into two replacements for clarity Signed-off-by: benjdlambert <ben@blam.sh> * fix(catalog): comment normalizeRoutePath regex and memoize routes Signed-off-by: benjdlambert <ben@blam.sh> * fix(catalog): preserve explicit trailing wildcards in route paths Signed-off-by: benjdlambert <ben@blam.sh> --------- Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog': patch
|
||||
---
|
||||
|
||||
Fixed an issue where navigating to an unknown sub-path on an entity page (for example `/catalog/default/component/foo/blob`) would silently render the first available route. Unknown paths now show the standard not-found page instead.
|
||||
Reference in New Issue
Block a user