pierrejeambrun commented on code in PR #69884:
URL: https://github.com/apache/airflow/pull/69884#discussion_r3615086623


##########
airflow-core/src/airflow/ui/src/layouts/Nav/SecurityButton.tsx:
##########
@@ -33,10 +33,14 @@ export const SecurityButton = () => {
     return undefined;
   }
 
+  const securityPaths = authLinks.extra_menu_items.map(
+    ({ text }) => `security/${text.toLowerCase().replace(" ", "-")}`,

Review Comment:
   Tiny thing: the security/<slug> derivation is now in two spots (here and the 
securityKey below that builds the link). Might be worth computing the slug once 
so the active-match can't drift from where the item actually links. 
Non-blocking.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to