{"action":"opened","issue":{"url":"https://api.github.com/repos/stevenschobert/instafeed.js/issues/246","labels_url":"https://api.github.com/repos/stevenschobert/instafeed.js/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/stevenschobert/instafeed.js/issues/246/comments","events_url":"https://api.github.com/repos/stevenschobert/instafeed.js/issues/246/events","html_url":"https://github.com/stevenschobert/instafeed.js/issues/246","id":65081394,"number":246,"title":"Template creates incorrect URL when site has a root directory","user":{"login":"aaronhudon","id":4406811,"avatar_url":"https://avatars.githubusercontent.com/u/4406811?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronhudon","html_url":"https://github.com/aaronhudon","followers_url":"https://api.github.com/users/aaronhudon/followers","following_url":"https://api.github.com/users/aaronhudon/following{/other_user}","gists_url":"https://api.github.com/users/aaronhudon/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronhudon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronhudon/subscriptions","organizations_url":"https://api.github.com/users/aaronhudon/orgs","repos_url":"https://api.github.com/users/aaronhudon/repos","events_url":"https://api.github.com/users/aaronhudon/events{/privacy}","received_events_url":"https://api.github.com/users/aaronhudon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-29T17:42:19Z","updated_at":"2015-03-29T17:42:19Z","closed_at":null,"body":"My site's root URL is a directory on web server.  E.g. www.mysite.com/somename\r\n\r\nWhen I use the 'template' feature, the <img> and <a> tags are generated incorrectly.\r\n\r\ntemplate directive:\r\ntemplate: '<a href=\"{{link}}\"><img src=\"{{image}}\" /></a>'\r\n\r\noutput from instafeed:\r\n\r\n<a href=\"/somename/https://instagram.com/p/0Ye8ztuy6j/\"><img src=\"/somename/https://scontent.cdninstagram.com/hphotos-xaf1/t51.2885-15/s306x306/e15/11049322_1559678897643111_692861705_n.jpg\"></a>\r\n"}}