{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-platform/issues/19441","repository_url":"https://api.github.com/repos/edx/edx-platform","labels_url":"https://api.github.com/repos/edx/edx-platform/issues/19441/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-platform/issues/19441/comments","events_url":"https://api.github.com/repos/edx/edx-platform/issues/19441/events","html_url":"https://github.com/edx/edx-platform/pull/19441","id":390689301,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4Mzk3OTgx","number":19441,"title":"Fix static urls in pdf_viewer.html to correctly display PDF viewer for textbooks","user":{"login":"danialmalik","id":42166091,"node_id":"MDQ6VXNlcjQyMTY2MDkx","avatar_url":"https://avatars1.githubusercontent.com/u/42166091?v=4","gravatar_id":"","url":"https://api.github.com/users/danialmalik","html_url":"https://github.com/danialmalik","followers_url":"https://api.github.com/users/danialmalik/followers","following_url":"https://api.github.com/users/danialmalik/following{/other_user}","gists_url":"https://api.github.com/users/danialmalik/gists{/gist_id}","starred_url":"https://api.github.com/users/danialmalik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danialmalik/subscriptions","organizations_url":"https://api.github.com/users/danialmalik/orgs","repos_url":"https://api.github.com/users/danialmalik/repos","events_url":"https://api.github.com/users/danialmalik/events{/privacy}","received_events_url":"https://api.github.com/users/danialmalik/received_events","type":"User","site_admin":false},"labels":[{"id":128413104,"node_id":"MDU6TGFiZWwxMjg0MTMxMDQ=","url":"https://api.github.com/repos/edx/edx-platform/labels/needs%20triage","name":"needs triage","color":"e11d21","default":false},{"id":78051711,"node_id":"MDU6TGFiZWw3ODA1MTcxMQ==","url":"https://api.github.com/repos/edx/edx-platform/labels/open-source-contribution","name":"open-source-contribution","color":"bfe5bf","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2018-12-13T13:55:02Z","updated_at":"2019-07-15T16:24:36Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/edx/edx-platform/pulls/19441","html_url":"https://github.com/edx/edx-platform/pull/19441","diff_url":"https://github.com/edx/edx-platform/pull/19441.diff","patch_url":"https://github.com/edx/edx-platform/pull/19441.patch"},"body":"Currently textbooks for a course are not loaded in i-frame. Reason is that browser cannot find the resources required to load the viewer. In file `/lms/templates/pdf_viewer.html`,  all static urls e.g. \r\n\r\n```\r\n${static.url('/static/js/vendor/pdfjs/locale/locale.properties')}\r\n```\r\n have unnecessary `/static` in the beginning of paths, due to which, the viewer is not loaded correctly and textbooks are not displayed correctly.\r\n\r\nSo I have removed those unnecessary `/static`(s) from the source paths."},"comment":{"url":"https://api.github.com/repos/edx/edx-platform/issues/comments/511471675","html_url":"https://github.com/edx/edx-platform/pull/19441#issuecomment-511471675","issue_url":"https://api.github.com/repos/edx/edx-platform/issues/19441","id":511471675,"node_id":"MDEyOklzc3VlQ29tbWVudDUxMTQ3MTY3NQ==","user":{"login":"natabene","id":16010656,"node_id":"MDQ6VXNlcjE2MDEwNjU2","avatar_url":"https://avatars2.githubusercontent.com/u/16010656?v=4","gravatar_id":"","url":"https://api.github.com/users/natabene","html_url":"https://github.com/natabene","followers_url":"https://api.github.com/users/natabene/followers","following_url":"https://api.github.com/users/natabene/following{/other_user}","gists_url":"https://api.github.com/users/natabene/gists{/gist_id}","starred_url":"https://api.github.com/users/natabene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natabene/subscriptions","organizations_url":"https://api.github.com/users/natabene/orgs","repos_url":"https://api.github.com/users/natabene/repos","events_url":"https://api.github.com/users/natabene/events{/privacy}","received_events_url":"https://api.github.com/users/natabene/received_events","type":"User","site_admin":false},"created_at":"2019-07-15T16:24:36Z","updated_at":"2019-07-15T16:24:36Z","author_association":"MEMBER","body":"@danialmalik Sorry for delay. @ormsbee Can you give this a look when you have a chance?"}}
{"actor":{"display_login":"natabene"}}