bbovenzi commented on code in PR #47041:
URL: https://github.com/apache/airflow/pull/47041#discussion_r1970110966
##########
airflow/ui/src/router.tsx:
##########
@@ -168,8 +168,7 @@ export const routerConfig = [
},
];
-const locationPath = globalThis.window.location.pathname;
-const indexOf = locationPath.indexOf("webapp/");
-const basename = locationPath.slice(0, indexOf + 7);
+const baseUrl = document.querySelector("base")?.href ??
"http://localhost:9091/";
Review Comment:
Why did we remove `const locationPath =
globalThis.window.location.pathname;`? For tests?
--
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]