Added url saving for posts

(I will get rid of the need to copy-paste code. It's terrible.)