Going to /installations/new?permission= should redirect to existing installation


#1

Hey folks!

When my account already has an installation for a given app, going to the below URL still shows a “New installation” page, which does not show the repos my app is installed on:

https://github.com/apps/APP/installations/new/permissions?target_id=ACCOUNT_ID

I would expect it to redirect to /settings/installations/EXISTING_INSTALLATION_ID. This can be really confusing; I thought that my existing installation had been deleted somehow. I can change the URL I point existing users to, but I think it’d be great if GitHub would that automagically.

Thanks <3