According to the documentation, when a user installs your application you can tell Github to redirect them to a URL of your choice. Redirection also comes with a GET parameter
installation_id which informs your application about the ID of the newly created entry.
Unfortunately this is not enough in our case, since we need to know where the user’s flow started from, because it can start with various ways and we want various outcomes.
Is there any way we to tell Github to modify the redirect URL based on each case? For example: Define a
redirect_url GET parameter when redirecting users to Github to install your app that will be used to to redirect users back from Github when the installation is done. In this case we can include additional information for each case and be able to have a state in our app.
I see that this is requested in various cases in another thread but no answer has ever been provided.