Fixed minor bug in returning post by URL