{"action":"created","issue":{"url":"https://api.github.com/repos/kjvarga/sitemap_generator/issues/230","repository_url":"https://api.github.com/repos/kjvarga/sitemap_generator","labels_url":"https://api.github.com/repos/kjvarga/sitemap_generator/issues/230/labels{/name}","comments_url":"https://api.github.com/repos/kjvarga/sitemap_generator/issues/230/comments","events_url":"https://api.github.com/repos/kjvarga/sitemap_generator/issues/230/events","html_url":"https://github.com/kjvarga/sitemap_generator/issues/230","id":137512006,"number":230,"title":"Error: both URI are relative","user":{"login":"davidwessman","id":6763624,"avatar_url":"https://avatars.githubusercontent.com/u/6763624?v=3","gravatar_id":"","url":"https://api.github.com/users/davidwessman","html_url":"https://github.com/davidwessman","followers_url":"https://api.github.com/users/davidwessman/followers","following_url":"https://api.github.com/users/davidwessman/following{/other_user}","gists_url":"https://api.github.com/users/davidwessman/gists{/gist_id}","starred_url":"https://api.github.com/users/davidwessman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidwessman/subscriptions","organizations_url":"https://api.github.com/users/davidwessman/orgs","repos_url":"https://api.github.com/users/davidwessman/repos","events_url":"https://api.github.com/users/davidwessman/events{/privacy}","received_events_url":"https://api.github.com/users/davidwessman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-01T08:53:43Z","updated_at":"2016-03-01T18:40:14Z","closed_at":null,"body":"When trying to create sitemap on my staging server I get this:\r\n```\r\nURI::BadURIError: both URI are relative\r\n.../sitemap_generator-5.1.0/lib/sitemap_generator/sitemap_location.rb:85:in `url'\r\n.../sitemap_generator-5.1.0/lib/sitemap_generator/builder/sitemap_index_file.rb:143:in `write_first_sitemap'\r\n.../sitemap_generator-5.1.0/lib/sitemap_generator/builder/sitemap_index_file.rb:104:in `finalize!'\r\n.../sitemap_generator-5.1.0/lib/sitemap_generator/link_set.rb:461:in `finalize_sitemap_index!'\r\n.../sitemap_generator-5.1.0/lib/sitemap_generator/link_set.rb:334:in `finalize!'\r\n.../sitemap_generator-5.1.0/lib/sitemap_generator/link_set.rb:41:in `create'\r\n.../sitemap_generator-5.1.0/lib/sitemap_generator.rb:42:in `method_missing'\r\n.../config/sitemap.rb:5:in `run'\r\n.../sitemap_generator-5.1.0/lib/sitemap_generator/interpreter.rb:76:in `instance_eval'\r\n.../sitemap_generator-5.1.0/lib/sitemap_generator/interpreter.rb:76:in `run'\r\n.../sitemap_generator-5.1.0/lib/sitemap_generator/tasks.rb:51:in `block (2 levels) in <top (required)>'\r\n```\r\n\r\nI set my `sitemaps_path = 'sitemaps/'`\r\nNo errors locally. Any clues?"},"comment":{"url":"https://api.github.com/repos/kjvarga/sitemap_generator/issues/comments/190846444","html_url":"https://github.com/kjvarga/sitemap_generator/issues/230#issuecomment-190846444","issue_url":"https://api.github.com/repos/kjvarga/sitemap_generator/issues/230","id":190846444,"user":{"login":"davidwessman","id":6763624,"avatar_url":"https://avatars.githubusercontent.com/u/6763624?v=3","gravatar_id":"","url":"https://api.github.com/users/davidwessman","html_url":"https://github.com/davidwessman","followers_url":"https://api.github.com/users/davidwessman/followers","following_url":"https://api.github.com/users/davidwessman/following{/other_user}","gists_url":"https://api.github.com/users/davidwessman/gists{/gist_id}","starred_url":"https://api.github.com/users/davidwessman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidwessman/subscriptions","organizations_url":"https://api.github.com/users/davidwessman/orgs","repos_url":"https://api.github.com/users/davidwessman/repos","events_url":"https://api.github.com/users/davidwessman/events{/privacy}","received_events_url":"https://api.github.com/users/davidwessman/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T18:40:14Z","updated_at":"2016-03-01T18:40:14Z","body":"Yeah, I wanted it to use based on my environment, anyway around this?"}}