{"action":"created","issue":{"url":"https://api.github.com/repos/wallabag/wallabag/issues/2904","repository_url":"https://api.github.com/repos/wallabag/wallabag","labels_url":"https://api.github.com/repos/wallabag/wallabag/issues/2904/labels{/name}","comments_url":"https://api.github.com/repos/wallabag/wallabag/issues/2904/comments","events_url":"https://api.github.com/repos/wallabag/wallabag/issues/2904/events","html_url":"https://github.com/wallabag/wallabag/issues/2904","id":208376775,"number":2904,"title":"Download images locally and domain change","user":{"login":"ngosang","id":10577978,"avatar_url":"https://avatars.githubusercontent.com/u/10577978?v=3","gravatar_id":"","url":"https://api.github.com/users/ngosang","html_url":"https://github.com/ngosang","followers_url":"https://api.github.com/users/ngosang/followers","following_url":"https://api.github.com/users/ngosang/following{/other_user}","gists_url":"https://api.github.com/users/ngosang/gists{/gist_id}","starred_url":"https://api.github.com/users/ngosang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngosang/subscriptions","organizations_url":"https://api.github.com/users/ngosang/orgs","repos_url":"https://api.github.com/users/ngosang/repos","events_url":"https://api.github.com/users/ngosang/events{/privacy}","received_events_url":"https://api.github.com/users/ngosang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-17T08:58:40Z","updated_at":"2017-02-17T10:07:15Z","closed_at":null,"body":"### Issue details\r\nI have \"Download images locally\" enabled and a lot of articles downloaded. If I change the \"URL of *your* wallabag instance\" this applies to new articles but old articles images are broken. :(\r\n\r\nYou should save a relative image path and compose the full URL when you request the article.\r\nExample:\r\n1) You add an article, download the images to local dir and replace URLs in the article with relative URLs.\r\n2) When you request an article, search for images in the text and replace relative URLs with \"URL of *your* wallabag instance\" + relative URL. **Or better, let the relative URL and don't use \"URL of *your* wallabag instance\"**\r\n3) If you change \"URL of *your* wallabag instance\" everything is fine.\r\n\r\n![](http://pix.toile-libre.org/upload/original/1487319468.png)\r\n\r\n### Environment\r\n* wallabag master"},"comment":{"url":"https://api.github.com/repos/wallabag/wallabag/issues/comments/280609325","html_url":"https://github.com/wallabag/wallabag/issues/2904#issuecomment-280609325","issue_url":"https://api.github.com/repos/wallabag/wallabag/issues/2904","id":280609325,"user":{"login":"nicofrand","id":3419050,"avatar_url":"https://avatars.githubusercontent.com/u/3419050?v=3","gravatar_id":"","url":"https://api.github.com/users/nicofrand","html_url":"https://github.com/nicofrand","followers_url":"https://api.github.com/users/nicofrand/followers","following_url":"https://api.github.com/users/nicofrand/following{/other_user}","gists_url":"https://api.github.com/users/nicofrand/gists{/gist_id}","starred_url":"https://api.github.com/users/nicofrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicofrand/subscriptions","organizations_url":"https://api.github.com/users/nicofrand/orgs","repos_url":"https://api.github.com/users/nicofrand/repos","events_url":"https://api.github.com/users/nicofrand/events{/privacy}","received_events_url":"https://api.github.com/users/nicofrand/received_events","type":"User","site_admin":false},"created_at":"2017-02-17T10:07:15Z","updated_at":"2017-02-17T10:07:15Z","body":"Duplicate of https://github.com/wallabag/wallabag/issues/2852."}}
{"actor":{"display_login":"nicofrand"}}