{"action":"created","issue":{"url":"https://api.github.com/repos/frctl/fractal/issues/40","repository_url":"https://api.github.com/repos/frctl/fractal","labels_url":"https://api.github.com/repos/frctl/fractal/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/frctl/fractal/issues/40/comments","events_url":"https://api.github.com/repos/frctl/fractal/issues/40/events","html_url":"https://github.com/frctl/fractal/issues/40","id":149831651,"number":40,"title":"Upload styleguide to subfolder","user":{"login":"risker","id":1892091,"avatar_url":"https://avatars.githubusercontent.com/u/1892091?v=3","gravatar_id":"","url":"https://api.github.com/users/risker","html_url":"https://github.com/risker","followers_url":"https://api.github.com/users/risker/followers","following_url":"https://api.github.com/users/risker/following{/other_user}","gists_url":"https://api.github.com/users/risker/gists{/gist_id}","starred_url":"https://api.github.com/users/risker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/risker/subscriptions","organizations_url":"https://api.github.com/users/risker/orgs","repos_url":"https://api.github.com/users/risker/repos","events_url":"https://api.github.com/users/risker/events{/privacy}","received_events_url":"https://api.github.com/users/risker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-20T17:16:15Z","updated_at":"2016-04-21T10:01:34Z","closed_at":null,"body":"I'd like to upload the built styleguide to a subfolder on my server (instead of having to make a subdomain for every demo) Is there a way to configurate the web UI plugin or fractal to make the URLs relative instead of absolute?"},"comment":{"url":"https://api.github.com/repos/frctl/fractal/issues/comments/212840686","html_url":"https://github.com/frctl/fractal/issues/40#issuecomment-212840686","issue_url":"https://api.github.com/repos/frctl/fractal/issues/40","id":212840686,"user":{"login":"allmarkedup","id":126726,"avatar_url":"https://avatars.githubusercontent.com/u/126726?v=3","gravatar_id":"","url":"https://api.github.com/users/allmarkedup","html_url":"https://github.com/allmarkedup","followers_url":"https://api.github.com/users/allmarkedup/followers","following_url":"https://api.github.com/users/allmarkedup/following{/other_user}","gists_url":"https://api.github.com/users/allmarkedup/gists{/gist_id}","starred_url":"https://api.github.com/users/allmarkedup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allmarkedup/subscriptions","organizations_url":"https://api.github.com/users/allmarkedup/orgs","repos_url":"https://api.github.com/users/allmarkedup/repos","events_url":"https://api.github.com/users/allmarkedup/events{/privacy}","received_events_url":"https://api.github.com/users/allmarkedup/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T10:01:34Z","updated_at":"2016-04-21T10:01:34Z","body":"Yep this sounds like a pretty common use case so I'll have a look at this today and see if I can get something in place.\r\n\r\nThe tricky thing however will be what to do with absolute paths in asset CSS files. Fractal basically copies the contents of the static assets  directory into the build directory. That means that absolute URLs (i.e. for bg images) in the CSS may not resolve correctly if the build directory is placed in a subdirectory.\r\n\r\nI'll have a think about how to mitigate this, but just being able to prefix the path URLs in the build will definitely be a good first step.  "}}