Update url and permalink