Changed buggy pagination
Added check of final url from posts