Checklist:
Describe the bug
Argocd-application controller faces a memory leak when server url in application controller ends with a trailing / as described in argoproj/argo-cd#5578
To Reproduce
- Edit any existing application object and append a / in the end in server.
- Check resource usage of argocd-application-controller pods on Grafana
Current behavior
If an application object server url ends with a trailing /, argocd-application-controller memory usage keeps growing higher and ultimately gets OOMKilled.

Expected behavior
While the fix for this memory leak issue is in argocd-1.8.6 but meanwhile we can prevent user from entering the trailing / in server url on the UI and trim off any trailing slash while saving it.
Screenshots
