I have an answer. In fact, while we are creating the application page on Linked in, it will be possible to specify a redirect URL. There we must provide. After that, if the cancel button is pressed, it is redirected to this URL and closes the dialog
source share