Fix issue on redirecting to post page