I will frequently add a line of text in my article sending the reader to the article page. This is separate from the actual produced permalink. The problem I'm having is that I can't get the permalink until the article is posted. I can copy the text from the displayed permalink, but if the title is too long that won't work. I can also copy that permalink but then I just get the generic ?p=123 type of link and I have to be sure to remove the 'preview' part of it.
Is there a nifty piece of code to put in the link field that will pull the permalink for that article? Kind of how it does in the PHP? This would also solve the issue if the permalink was changed and it broke the custom link.