The link pop-up is for adding the URL to the text that you are linking. So normally you would type the text, highlight it and then use the link button to add the URL.
If you've already got a URL in the text and want to change it to text that is linked, I'd copy the URL, delete it and replace it with the text that you want to use and then use the link button to link that text.