Subham-KRLX commented on code in PR #63141:
URL: https://github.com/apache/airflow/pull/63141#discussion_r2905703116


##########
airflow-core/src/airflow/ui/src/pages/Security.tsx:
##########
@@ -43,8 +43,18 @@ export const Security = () => {
   const onLoad = () => {
     const iframe: HTMLIFrameElement | null = 
document.querySelector("#security-iframe");
 
-    if (iframe?.contentWindow && 
!iframe.contentWindow.location.pathname.startsWith("/auth/")) {
-      void Promise.resolve(navigate("/"));
+    if (iframe?.contentWindow) {
+      const baseUrl = document.querySelector("base")?.href ?? 
"http://localhost:8080/";;

Review Comment:
   Removed the hardcoded localhost:8080 fallback. Now when no <base> tag is 
found, 
[basename](vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/workbench.html)
 defaults to "" (empty string), so the path is checked as-is. Also added a 
newsfragment.



-- 
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