This is an automated email from the ASF dual-hosted git repository.

bbovenzi pushed a commit to branch v3-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-2-test by this push:
     new 9e2bf8110b4 [v3-2-test] fix(ui): correct external link target and add 
rel attributes (#64542) (#64772)
9e2bf8110b4 is described below

commit 9e2bf8110b4d273ff93c9dccc9023188cdf51af0
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Apr 6 13:09:01 2026 -0400

    [v3-2-test] fix(ui): correct external link target and add rel attributes 
(#64542) (#64772)
    
    * fix(ui): correct external link target and add rel attributes with test
    
    * fix(ui): correct external link target and add rel attributes with test
    
    * fix(ui): correct external link target and add rel attributes with test
    
    * fix: apply UI formatting
    (cherry picked from commit 8509dc992108a6f4ef7b5913e6784d23d3fb64e7)
    
    Co-authored-by: Mayank Aggarwal <[email protected]>
---
 .../pages/Connections/NothingFoundInfo.test.tsx    | 36 ++++++++++++++++++++++
 .../ui/src/pages/Connections/NothingFoundInfo.tsx  |  2 +-
 2 files changed, 37 insertions(+), 1 deletion(-)

diff --git 
a/airflow-core/src/airflow/ui/src/pages/Connections/NothingFoundInfo.test.tsx 
b/airflow-core/src/airflow/ui/src/pages/Connections/NothingFoundInfo.test.tsx
new file mode 100644
index 00000000000..05197e0499e
--- /dev/null
+++ 
b/airflow-core/src/airflow/ui/src/pages/Connections/NothingFoundInfo.test.tsx
@@ -0,0 +1,36 @@
+/*!
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+import "@testing-library/jest-dom";
+import { render, screen } from "@testing-library/react";
+import { describe, it, expect } from "vitest";
+
+import { Wrapper } from "src/utils/Wrapper";
+
+import { NothingFoundInfo } from "./NothingFoundInfo";
+
+describe("NothingFoundInfo", () => {
+  it("should have correct external link attributes", () => {
+    render(<NothingFoundInfo />, { wrapper: Wrapper });
+
+    const link = screen.getByRole("link");
+
+    expect(link).toHaveAttribute("target", "_blank");
+    expect(link).toHaveAttribute("rel", "noopener noreferrer");
+  });
+});
diff --git 
a/airflow-core/src/airflow/ui/src/pages/Connections/NothingFoundInfo.tsx 
b/airflow-core/src/airflow/ui/src/pages/Connections/NothingFoundInfo.tsx
index 4d1388c8274..88897e31319 100644
--- a/airflow-core/src/airflow/ui/src/pages/Connections/NothingFoundInfo.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/Connections/NothingFoundInfo.tsx
@@ -35,7 +35,7 @@ export const NothingFoundInfo = () => {
         <Text>{translate("connections.nothingFound.description")}</Text>
         <Text>
           {translate("connections.nothingFound.learnMore")}{" "}
-          <Link href={docsLink} target="blank">
+          <Link href={docsLink} rel="noopener noreferrer" target="_blank">
             {translate("connections.nothingFound.documentationLink")}
           </Link>
         </Text>

Reply via email to