{"action":"created","issue":{"url":"https://api.github.com/repos/lektor/lektor/issues/275","repository_url":"https://api.github.com/repos/lektor/lektor","labels_url":"https://api.github.com/repos/lektor/lektor/issues/275/labels{/name}","comments_url":"https://api.github.com/repos/lektor/lektor/issues/275/comments","events_url":"https://api.github.com/repos/lektor/lektor/issues/275/events","html_url":"https://github.com/lektor/lektor/issues/275","id":175062928,"node_id":"MDU6SXNzdWUxNzUwNjI5Mjg=","number":275,"title":"Children and pagination queries does not include pages with missing default alternative","user":{"login":"krzysztof-sikorski","id":4456257,"node_id":"MDQ6VXNlcjQ0NTYyNTc=","avatar_url":"https://avatars1.githubusercontent.com/u/4456257?v=4","gravatar_id":"","url":"https://api.github.com/users/krzysztof-sikorski","html_url":"https://github.com/krzysztof-sikorski","followers_url":"https://api.github.com/users/krzysztof-sikorski/followers","following_url":"https://api.github.com/users/krzysztof-sikorski/following{/other_user}","gists_url":"https://api.github.com/users/krzysztof-sikorski/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysztof-sikorski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysztof-sikorski/subscriptions","organizations_url":"https://api.github.com/users/krzysztof-sikorski/orgs","repos_url":"https://api.github.com/users/krzysztof-sikorski/repos","events_url":"https://api.github.com/users/krzysztof-sikorski/events{/privacy}","received_events_url":"https://api.github.com/users/krzysztof-sikorski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-05T12:38:44Z","updated_at":"2018-08-10T17:40:54Z","closed_at":null,"author_association":"NONE","body":"# Summary\n\nIf I enable alternatives, then page directory does not have to contain a `contents.lr` file, it is enough if it contains at least one `contents+ALT.lr` file where `ALT` is key of alternative.\n\nBut if I have such page, that it does not appear in `children` and `pagination.items` queries of its parent.\n# Steps to reproduce\n- execute `lektor quickstart`, answering yes to \"Add basic blog\" question\n- execute `lektor server`\n- visit `http://127.0.0.1:5000/blog/`: list of posts contains \"Hello Lektor\" entry, linking to `http://127.0.0.1:5000/blog/first-post/` URL\n- enable \"fr\" alternative in project config, by copying sample from [documentation page](https://www.getlektor.com/docs/content/alts/):\n\n```\n[alternatives.en]\nname = English\nprimary = yes\nlocale = en_US\n\n[alternatives.fr]\nname = French\nurl_prefix = /fr/\nlocale = fr\n```\n- rename `content/blog/first-post/contents.lr` file to `content/blog/first-post/contents+fr.lr`\n- visit `http://127.0.0.1:5000/blog/` again: this time \"Hello Lektor\" entry is missing, although you can still read the \"French\" version of post page at `http://127.0.0.1:5000/fr/blog/first-post/`\n"},"comment":{"url":"https://api.github.com/repos/lektor/lektor/issues/comments/412154466","html_url":"https://github.com/lektor/lektor/issues/275#issuecomment-412154466","issue_url":"https://api.github.com/repos/lektor/lektor/issues/275","id":412154466,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjE1NDQ2Ng==","user":{"login":"eigengrau","id":4939947,"node_id":"MDQ6VXNlcjQ5Mzk5NDc=","avatar_url":"https://avatars0.githubusercontent.com/u/4939947?v=4","gravatar_id":"","url":"https://api.github.com/users/eigengrau","html_url":"https://github.com/eigengrau","followers_url":"https://api.github.com/users/eigengrau/followers","following_url":"https://api.github.com/users/eigengrau/following{/other_user}","gists_url":"https://api.github.com/users/eigengrau/gists{/gist_id}","starred_url":"https://api.github.com/users/eigengrau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eigengrau/subscriptions","organizations_url":"https://api.github.com/users/eigengrau/orgs","repos_url":"https://api.github.com/users/eigengrau/repos","events_url":"https://api.github.com/users/eigengrau/events{/privacy}","received_events_url":"https://api.github.com/users/eigengrau/received_events","type":"User","site_admin":false},"created_at":"2018-08-10T17:40:53Z","updated_at":"2018-08-10T17:40:53Z","author_association":"CONTRIBUTOR","body":"This also appears to pertain to queries in general. E.g., `pad.query('/foo').all()` will fail to include any records that only exist in the non-primary alternative. It would be convenient if the usual fall-back logic would apply if the `alt=` argument is not supplied."}}
{"actor":{"display_login":"eigengrau"}}