{"action":"created","issue":{"url":"https://api.github.com/repos/bezumkin/pdoTools/issues/124","labels_url":"https://api.github.com/repos/bezumkin/pdoTools/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/bezumkin/pdoTools/issues/124/comments","events_url":"https://api.github.com/repos/bezumkin/pdoTools/issues/124/events","html_url":"https://github.com/bezumkin/pdoTools/issues/124","id":89123958,"number":124,"title":"Strange behaviour of pdoPage with using parameter tvFilters - no paginate","user":{"login":"Alroniks","id":303498,"avatar_url":"https://avatars.githubusercontent.com/u/303498?v=3","gravatar_id":"","url":"https://api.github.com/users/Alroniks","html_url":"https://github.com/Alroniks","followers_url":"https://api.github.com/users/Alroniks/followers","following_url":"https://api.github.com/users/Alroniks/following{/other_user}","gists_url":"https://api.github.com/users/Alroniks/gists{/gist_id}","starred_url":"https://api.github.com/users/Alroniks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alroniks/subscriptions","organizations_url":"https://api.github.com/users/Alroniks/orgs","repos_url":"https://api.github.com/users/Alroniks/repos","events_url":"https://api.github.com/users/Alroniks/events{/privacy}","received_events_url":"https://api.github.com/users/Alroniks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-17T20:55:25Z","updated_at":"2015-06-18T05:37:11Z","closed_at":null,"body":"I need use tvFilter for create simple search by params. Example here http://massagist.by/wiki/\r\npdoPage called on page once. If I remove tvFilters - pagination works. If use - alway first page (302 redirect when I attempt go to another page).\r\n\r\nExample of my code:\r\n\r\n```\r\n[[!pdoPage:default=`Поиск не дал результатов. Попробуйте изменить параметры поиска.`?\r\n        &element=`pdoResources`\r\n        &parents=`[[*id]]`\r\n        &tpl=`news.row`\r\n        &includeTVs=`wiki_region,wiki_type,wiki_tool`\r\n        &tvFilters=`[[!tvfilters?]]`\r\n        &sortby=`pagetitle`\r\n        &sortdir=`asc`\r\n        &showLog=`0`\r\n        &limit=`10`\r\n        &maxLimit=`10`\r\n        &ajax=`0`\r\n    ]]\r\n    \r\n    <div class=\"page-list\">\r\n        [[!+page.nav]]\r\n    </div>\r\n```\r\n\r\nSnippet `[[tvfilters]]` just generate actual json for using in this parameter. Nothing extraordinary."},"comment":{"url":"https://api.github.com/repos/bezumkin/pdoTools/issues/comments/113042700","html_url":"https://github.com/bezumkin/pdoTools/issues/124#issuecomment-113042700","issue_url":"https://api.github.com/repos/bezumkin/pdoTools/issues/124","id":113042700,"user":{"login":"bezumkin","id":1257284,"avatar_url":"https://avatars.githubusercontent.com/u/1257284?v=3","gravatar_id":"","url":"https://api.github.com/users/bezumkin","html_url":"https://github.com/bezumkin","followers_url":"https://api.github.com/users/bezumkin/followers","following_url":"https://api.github.com/users/bezumkin/following{/other_user}","gists_url":"https://api.github.com/users/bezumkin/gists{/gist_id}","starred_url":"https://api.github.com/users/bezumkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bezumkin/subscriptions","organizations_url":"https://api.github.com/users/bezumkin/orgs","repos_url":"https://api.github.com/users/bezumkin/repos","events_url":"https://api.github.com/users/bezumkin/events{/privacy}","received_events_url":"https://api.github.com/users/bezumkin/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T05:37:11Z","updated_at":"2015-06-18T05:37:11Z","body":"Если $_GET действительно пустой, то там нет и номера страницы - будет редирект.\r\n\r\nИли редирект происходит всегда при пустом tvFilters? Вообще, попробуй посмотреть, где именно происходит редирект, при каком условии в [сниппете](https://github.com/bezumkin/pdoTools/blob/master/core/components/pdotools/elements/snippets/snippet.pdopage.php). Просто поищи по вызову redirectToFirst."}}