{"action":"created","issue":{"url":"https://api.github.com/repos/ploneintranet/ploneintranet/issues/466","labels_url":"https://api.github.com/repos/ploneintranet/ploneintranet/issues/466/labels{/name}","comments_url":"https://api.github.com/repos/ploneintranet/ploneintranet/issues/466/comments","events_url":"https://api.github.com/repos/ploneintranet/ploneintranet/issues/466/events","html_url":"https://github.com/ploneintranet/ploneintranet/pull/466","id":94076793,"number":466,"title":"override ../view url for library files in search results","user":{"login":"gyst","id":122351,"avatar_url":"https://avatars.githubusercontent.com/u/122351?v=3","gravatar_id":"","url":"https://api.github.com/users/gyst","html_url":"https://github.com/gyst","followers_url":"https://api.github.com/users/gyst/followers","following_url":"https://api.github.com/users/gyst/following{/other_user}","gists_url":"https://api.github.com/users/gyst/gists{/gist_id}","starred_url":"https://api.github.com/users/gyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyst/subscriptions","organizations_url":"https://api.github.com/users/gyst/orgs","repos_url":"https://api.github.com/users/gyst/repos","events_url":"https://api.github.com/users/gyst/events{/privacy}","received_events_url":"https://api.github.com/users/gyst/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ploneintranet/ploneintranet/labels/PR%20review","name":"PR review","color":"0052cc"}],"state":"open","locked":false,"assignee":{"login":"gyst","id":122351,"avatar_url":"https://avatars.githubusercontent.com/u/122351?v=3","gravatar_id":"","url":"https://api.github.com/users/gyst","html_url":"https://github.com/gyst","followers_url":"https://api.github.com/users/gyst/followers","following_url":"https://api.github.com/users/gyst/following{/other_user}","gists_url":"https://api.github.com/users/gyst/gists{/gist_id}","starred_url":"https://api.github.com/users/gyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyst/subscriptions","organizations_url":"https://api.github.com/users/gyst/orgs","repos_url":"https://api.github.com/users/gyst/repos","events_url":"https://api.github.com/users/gyst/events{/privacy}","received_events_url":"https://api.github.com/users/gyst/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-07-09T15:19:33Z","updated_at":"2015-07-15T11:23:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ploneintranet/ploneintranet/pulls/466","html_url":"https://github.com/ploneintranet/ploneintranet/pull/466","diff_url":"https://github.com/ploneintranet/ploneintranet/pull/466.diff","patch_url":"https://github.com/ploneintranet/ploneintranet/pull/466.patch"},"body":"Link to direct download rather than file/view in search results."},"comment":{"url":"https://api.github.com/repos/ploneintranet/ploneintranet/issues/comments/121585873","html_url":"https://github.com/ploneintranet/ploneintranet/pull/466#issuecomment-121585873","issue_url":"https://api.github.com/repos/ploneintranet/ploneintranet/issues/466","id":121585873,"user":{"login":"gyst","id":122351,"avatar_url":"https://avatars.githubusercontent.com/u/122351?v=3","gravatar_id":"","url":"https://api.github.com/users/gyst","html_url":"https://github.com/gyst","followers_url":"https://api.github.com/users/gyst/followers","following_url":"https://api.github.com/users/gyst/following{/other_user}","gists_url":"https://api.github.com/users/gyst/gists{/gist_id}","starred_url":"https://api.github.com/users/gyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyst/subscriptions","organizations_url":"https://api.github.com/users/gyst/orgs","repos_url":"https://api.github.com/users/gyst/repos","events_url":"https://api.github.com/users/gyst/events{/privacy}","received_events_url":"https://api.github.com/users/gyst/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T11:23:01Z","updated_at":"2015-07-15T11:23:01Z","body":"@mattss The intent is to link to the proper view of the file as defined in it's containing IApp. For files in workspaces that is the defined view there. For files in library that is the direct download view. For files in Barceloneta, wherever they live, it's the default plone behaviour described by you.\r\n\r\nSo by binding to IAppContent specific library layers here, I'm implementing direct download only for files contained within an ILibraryApp which are viewed through ploneintranet.theme. All the other cases are left alone."}}