This is an automated email from the ASF dual-hosted git repository.
jscheffl pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 1644e03c46a Fix Legacy UI Button Navigation Issue (#46586)
1644e03c46a is described below
commit 1644e03c46ae2f4f039a43cee14d2c22070630fd
Author: Saumil Patel <[email protected]>
AuthorDate: Sun Feb 9 01:30:19 2025 +0530
Fix Legacy UI Button Navigation Issue (#46586)
* #46316 Issue: Update start.rst
* Update start.rst
Added the link for detailed error
* Removed single ticks
* Fix Legacy UI Button Navigation Issue
* Fix the URL for legacy ui
---
airflow/ui/.env.example | 2 +-
airflow/ui/src/layouts/Nav/Nav.tsx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/airflow/ui/.env.example b/airflow/ui/.env.example
index 3e3c1569f12..632f8d977a0 100644
--- a/airflow/ui/.env.example
+++ b/airflow/ui/.env.example
@@ -19,4 +19,4 @@
# This is an example. You should make your own `.env.local` file for
development
-VITE_LEGACY_API_URL="http://localhost:28080"
+VITE_LEGACY_API_URL="http://localhost:28080/home"
diff --git a/airflow/ui/src/layouts/Nav/Nav.tsx
b/airflow/ui/src/layouts/Nav/Nav.tsx
index fd0c768d2bf..e3c7909cbb5 100644
--- a/airflow/ui/src/layouts/Nav/Nav.tsx
+++ b/airflow/ui/src/layouts/Nav/Nav.tsx
@@ -59,7 +59,7 @@ export const Nav = () => {
<NavButton
icon={<FiCornerUpLeft size="1.75rem" />}
title="Legacy UI"
- to={import.meta.env.VITE_LEGACY_API_URL}
+ to={import.meta.env.VITE_LEGACY_API_URL ||
"http://localhost:28080/home"}
/>
<DocsButton />
<UserSettingsButton />