Skip to content

With useNavigate, we can navigate through routes like /webapp, automatically using the correct domain. #46533

Closed

Description

@aditya0yadav

Description

When running code in Gitpod, we encountered an issue.

For example, when clicking on "Check Out New UI," it redirects us to localhost:29091 instead of using the Gitpod port domain/route as expected

Use case/motivation

for easy traversing for url When running code in Gitpod, we face an issue where navigation does not use the correct domain.

What Would You Like to Happen?

Ensure navigation within the application correctly adapts to Gitpod's port-based domain instead of defaulting to localhost.
When using useNavigate, routes like /webapp should automatically use the Gitpod domain without requiring manual adjustments.
Improve the development experience by preventing incorrect redirects and ensuring seamless navigation.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:feature
    needs-triage
    on Feb 6, 2025
  2. changed the title [-]using useNavigate we can navigate through many route /webapp it will automatically use the domain ChatGPT said: Using useNavigate, we can navigate through multiple routes like /webapp, and it will automatically use the correct domain.[/-] [+]With `useNavigate`, we can navigate through routes like `/webapp`, automatically using the correct domain.[/+] on Feb 6, 2025
  3. added
    area:UI
    on Feb 6, 2025
  4. potiuk commented on Feb 6, 2025

    @potiuk
    Member

    Using Chat GPT to create issues. Be careful, It creates far too chatty issues.

  5. potiuk commented on Feb 6, 2025

    @potiuk
    Member

    But yes if you want to look at it - feel free.

  6. potiuk commented on Feb 6, 2025

    @potiuk
    Member

    assigned you

  7. aditya0yadav commented on Feb 6, 2025

    @aditya0yadav
    ContributorAuthor

    Using Chat GPT to create issues. Be careful, It creates far too chatty issues.

    Real version have a lot of alphabetical mistake
    So I will be careful next time

    Thanks

  8. added and removed
    needs-triage
    on Feb 6, 2025
  9. added
    priority:low
    on Feb 25, 2025
  10. 4 remaining items

  11. added this to the Airflow 3.1+ milestone on Apr 11, 2025
  12. potiuk commented on Mar 2, 2026

    @potiuk
    Member

    @aditya0yadav We are unassigning you from this issue as part of our updated assignment policy.

    This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.

    We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.

  13. removed this from the Airflow 3.2.0 milestone on Mar 25, 2026
  14. dandanseo123 commented on Apr 10, 2026

    @dandanseo123
    Contributor

    I took a brief look at this. The root cause seems to be in airflow-core/src/airflow/ui/src/main.tsx on this line params.set("next", globalThis.location.href) where it uses absolute url, but it should use a relative path. But I need Gitpod access which I don't want to set up, hence why I can't fully tackle this issue. Also the issue title is a bit vague for me, so maybe we can make that a bit more clear.

  15. desusaiteja commented on May 11, 2026

    @desusaiteja

    Opened a PR with a UI-only fix for this proxied login redirect issue.

  16. added a commit that references this issue on May 13, 2026
    25ef835
  17. added 4 commits that reference this issue on May 18, 2026
    f7bb447
    30a36b4
    8ee8893
    5d7c7e7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected_version:3.0area:UIgood first issuekind:featurepriority:low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions