@backstage/core-app-api 1.9.0 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @backstage/core-app-api
2
2
 
3
+ ## 1.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 9ae4e7e63836: Fixed a bug that could cause `navigate` analytics events to be misattributed to the plugin mounted on the root route (e.g. the `home` plugin at `/`) when the route that was navigated to wasn't associated with a routable extension.
8
+ - Updated dependencies
9
+ - @backstage/core-plugin-api@1.5.3
10
+ - @backstage/config@1.0.8
11
+ - @backstage/types@1.1.0
12
+ - @backstage/version-bridge@1.0.4
13
+
14
+ ## 1.9.1-next.0
15
+
16
+ ### Patch Changes
17
+
18
+ - 9ae4e7e63836: Fixed a bug that could cause `navigate` analytics events to be misattributed to the plugin mounted on the root route (e.g. the `home` plugin at `/`) when the route that was navigated to wasn't associated with a routable extension.
19
+ - Updated dependencies
20
+ - @backstage/core-plugin-api@1.5.3
21
+ - @backstage/config@1.0.8
22
+ - @backstage/types@1.1.0
23
+ - @backstage/version-bridge@1.0.4
24
+
3
25
  ## 1.9.0
4
26
 
5
27
  ### Minor Changes
package/dist/index.esm.js CHANGED
@@ -2182,6 +2182,9 @@ const getExtensionContext = (pathname, routes) => {
2182
2182
  if (!routeObject) {
2183
2183
  return void 0;
2184
2184
  }
2185
+ if (routeObject.path === "" && pathname !== "/") {
2186
+ return void 0;
2187
+ }
2185
2188
  let routeRef;
2186
2189
  if (routeObject.routeRefs.size === 1) {
2187
2190
  routeRef = routeObject.routeRefs.values().next().value;
@@ -2193,7 +2196,7 @@ const getExtensionContext = (pathname, routes) => {
2193
2196
  const params = Object.entries(
2194
2197
  (routeMatch == null ? void 0 : routeMatch.params) || {}
2195
2198
  ).reduce((acc, [key, value]) => {
2196
- if (value !== void 0) {
2199
+ if (value !== void 0 && key !== "*") {
2197
2200
  acc[key] = value;
2198
2201
  }
2199
2202
  return acc;