{"action":"created","issue":{"url":"https://api.github.com/repos/ckan/ckanext-archiver/issues/16","labels_url":"https://api.github.com/repos/ckan/ckanext-archiver/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/ckan/ckanext-archiver/issues/16/comments","events_url":"https://api.github.com/repos/ckan/ckanext-archiver/issues/16/events","html_url":"https://github.com/ckan/ckanext-archiver/issues/16","id":125591456,"number":16,"title":"Resource URL when CKAN is in subpath","user":{"login":"AdrianMBarrera","id":6286419,"avatar_url":"https://avatars.githubusercontent.com/u/6286419?v=3","gravatar_id":"","url":"https://api.github.com/users/AdrianMBarrera","html_url":"https://github.com/AdrianMBarrera","followers_url":"https://api.github.com/users/AdrianMBarrera/followers","following_url":"https://api.github.com/users/AdrianMBarrera/following{/other_user}","gists_url":"https://api.github.com/users/AdrianMBarrera/gists{/gist_id}","starred_url":"https://api.github.com/users/AdrianMBarrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdrianMBarrera/subscriptions","organizations_url":"https://api.github.com/users/AdrianMBarrera/orgs","repos_url":"https://api.github.com/users/AdrianMBarrera/repos","events_url":"https://api.github.com/users/AdrianMBarrera/events{/privacy}","received_events_url":"https://api.github.com/users/AdrianMBarrera/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-08T11:18:06Z","updated_at":"2016-01-08T11:52:12Z","closed_at":null,"body":"Hi,\r\n\r\nWe've installed CKAN 2.5 and we're trying this extension. Our CKAN site is in a subpath.\r\n\r\nWhen we run the Archiver update command, the resource's path changes (the subpath gets removed). As result, the Archiver detects this resource as a broken link.\r\n\r\nOur configuration:\r\n\r\n**ckan.site_url = http://ourcatalog.org/data\r\nckanext-archiver.archive_dir = /var/www/html/cache-datasets\r\nckanext-archiver.cache_url_root = http://ourcatalog.org/data/resource_cache\r\nckanext-archiver.max_content_length = 50000000\r\nckanext-archiver.user_agent_string = \"Our Catalog (CKAN)\"**\r\n\r\nAny ideas?\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/ckan/ckanext-archiver/issues/comments/169976965","html_url":"https://github.com/ckan/ckanext-archiver/issues/16#issuecomment-169976965","issue_url":"https://api.github.com/repos/ckan/ckanext-archiver/issues/16","id":169976965,"user":{"login":"AdrianMBarrera","id":6286419,"avatar_url":"https://avatars.githubusercontent.com/u/6286419?v=3","gravatar_id":"","url":"https://api.github.com/users/AdrianMBarrera","html_url":"https://github.com/AdrianMBarrera","followers_url":"https://api.github.com/users/AdrianMBarrera/followers","following_url":"https://api.github.com/users/AdrianMBarrera/following{/other_user}","gists_url":"https://api.github.com/users/AdrianMBarrera/gists{/gist_id}","starred_url":"https://api.github.com/users/AdrianMBarrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdrianMBarrera/subscriptions","organizations_url":"https://api.github.com/users/AdrianMBarrera/orgs","repos_url":"https://api.github.com/users/AdrianMBarrera/repos","events_url":"https://api.github.com/users/AdrianMBarrera/events{/privacy}","received_events_url":"https://api.github.com/users/AdrianMBarrera/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T11:52:12Z","updated_at":"2016-01-08T11:52:12Z","body":"Yes, the resource.url. For example:\r\n* Original url: ourcatalog.org/data/dataset/dataset-name/resource/resource-id\r\n* After update: ourcatalog.org/dataset/dataset-name/resource/resource-id\r\n\r\nWe are running the latest version of the archiver.\r\n\r\nThank you, @davidread "}}