Description of problem: Dynamic plugin nav extensions do not support `startsWith` property Version-Release number of selected component (if applicable): 4.11 How reproducible: Always Steps to Reproduce: 1. Edit the console-app console-extensions.json and add a startsWith property to one of the nav items. (e.g. "startsWith": ["starts-with"]) 2. In the console, navigate to a URL that should match (e.g. /k8s/cluster/starts-with) Actual results: The nav item will not be highlighted as active in the console Expected results: The nav item should be highlighted as active when the URL starts with any of the items in the startsWith property. Additional info:
$ git diff dynamic-demo-plugin/console-extensions.json diff --git a/dynamic-demo-plugin/console-extensions.json b/dynamic-demo-plugin/console-extensions.json index 57ce393b66..00ce7db27f 100644 --- a/dynamic-demo-plugin/console-extensions.json +++ b/dynamic-demo-plugin/console-extensions.json @@ -164,7 +164,8 @@ "perspective": "admin", "section": "admin-demo-section", "name": "%plugin__console-demo-plugin~Test Consumer%", - "href": "/test-consumer" + "href": "/test-consumer", + "startsWith": ["consumer-starts", "consumer-prefix"] } }, { @@ -215,7 +216,8 @@ "perspective": "admin", "section": "admin-demo-section", "name": "%plugin__console-demo-plugin~Test Utilities%", - "href": "/test-utility-consumer" + "href": "/test-utility-consumer", + "startsWith": ["utility-starts", "utility-prefix"] } }, { visit URL /utility-prefix or /consumer-starts, then 'Test Utilities' or 'Test Consumers' menu will be highlighted verified on 4.11.0-0.nightly-2022-06-20-220209
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5069