fix url not opening if post was previously opened