correctly store returnURL setting (for edit view)