argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
17.98k stars 5.47k forks source link

ArgoCD PROJECT UI link is 404 error when using "--rootpath" #9599

Open reefland opened 2 years ago

reefland commented 2 years ago

Checklist:

Describe the bug

ArgoCD is deployed using --rootpath=/argocd. ArgoCD overall works fine, however PROJECT link in the UI does not seem to be respecting the rootpath.

To Reproduce

The Log out button is also a incorrect in that it protocol switches from HTTPS to HTTP, as I do not have an automatic redirect this results in a 404. There is no reason that ArgoCD should change protocol upon logout.

Expected behavior

The links in the UI should respect the contents of --rootpath=/argocd

Screenshots

argocd_url_issue

Version

Not deploying the ArgoCD cli, UI shows: v2.3.4+ac8b7df

Logs

Paste any relevant application logs here.
reefland commented 2 years ago

@alexmt - I saw this was merged into master 17 days ago and there have been several releases since then. I can't tell if this has been included in a release yet, but its still broken with v2.4.6+a48bca0.

crenshaw-dev commented 2 years ago

Thanks for the reminder @reefland! It'll be part of 2.4.7. I'm going to see if I can get a few more fixes merged and then cut a release in the next 3ish days.

reefland commented 2 years ago

The fix for the rootpath is working well. However, the other issue from above:

The Log out button is also a incorrect in that it protocol switches from HTTPS to HTTP, as I do not have an automatic redirect this results in a 404. There is no reason that ArgoCD should change protocol upon logout.

Still not right. Click Log Out I still get a 404 page not found because it is switching from HTTPS to HTTP.

crenshaw-dev commented 2 years ago

Re-opening to track the "log out" issue.