{"action":"created","issue":{"url":"https://api.github.com/repos/glennjones/hapi-swagger/issues/589","repository_url":"https://api.github.com/repos/glennjones/hapi-swagger","labels_url":"https://api.github.com/repos/glennjones/hapi-swagger/issues/589/labels{/name}","comments_url":"https://api.github.com/repos/glennjones/hapi-swagger/issues/589/comments","events_url":"https://api.github.com/repos/glennjones/hapi-swagger/issues/589/events","html_url":"https://github.com/glennjones/hapi-swagger/issues/589","id":446287708,"node_id":"MDU6SXNzdWU0NDYyODc3MDg=","number":589,"title":"Docs served from both root and path - /swaggerui/","user":{"login":"guyellis","id":2047725,"node_id":"MDQ6VXNlcjIwNDc3MjU=","avatar_url":"https://avatars2.githubusercontent.com/u/2047725?v=4","gravatar_id":"","url":"https://api.github.com/users/guyellis","html_url":"https://github.com/guyellis","followers_url":"https://api.github.com/users/guyellis/followers","following_url":"https://api.github.com/users/guyellis/following{/other_user}","gists_url":"https://api.github.com/users/guyellis/gists{/gist_id}","starred_url":"https://api.github.com/users/guyellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guyellis/subscriptions","organizations_url":"https://api.github.com/users/guyellis/orgs","repos_url":"https://api.github.com/users/guyellis/repos","events_url":"https://api.github.com/users/guyellis/events{/privacy}","received_events_url":"https://api.github.com/users/guyellis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2019-05-20T20:09:39Z","updated_at":"2019-06-06T17:13:56Z","closed_at":null,"author_association":"NONE","body":"#### Context\r\n\r\n* *hapi-swagger version*: 9.4.2\r\n* *any other relevant information*: Hapi 17.x\r\n\r\n#### What are you trying to achieve or the steps to reproduce?\r\n\r\nTrying to host Swagger on both \"root\" domain and a domain with a path. For example, some users will access the Swagger docs through `https://mydomain.com/docs/` and others will access it through `https://myotherdomain.com/some-path/docs/`\r\n\r\n#### What result did you get?\r\n\r\nIt works with `https://mydomain.com/docs/` - the resources in the HTML default to `/swaggerui/` which is where they are. On the `https://myotherdomain.com/some-path/docs/` the resources are being path'd to `https://myotherdomain.com/swaggerui/` but I need them path'd to `https://myotherdomain.com/some-path/swaggerui/`\r\n\r\ni.e. the API is running at both:\r\n- `https://mydomain.com/`\r\n- `https://myotherdomain.com/some-path/`\r\n\r\n#### What did you expect?\r\n\r\nAn option to allow me to drop the `/` from the `/swaggerui/` path to make it relative instead of absolute or something like that.\r\n\r\n#### What have you already tried?\r\n\r\nIn the `swaggerUIPath` (which defaults to `/swaggerui/`) I tried removing the leading `/` - when I do this I get an error: `Invalid path: swaggerui/{path*}`"},"comment":{"url":"https://api.github.com/repos/glennjones/hapi-swagger/issues/comments/499586006","html_url":"https://github.com/glennjones/hapi-swagger/issues/589#issuecomment-499586006","issue_url":"https://api.github.com/repos/glennjones/hapi-swagger/issues/589","id":499586006,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5OTU4NjAwNg==","user":{"login":"guyellis","id":2047725,"node_id":"MDQ6VXNlcjIwNDc3MjU=","avatar_url":"https://avatars2.githubusercontent.com/u/2047725?v=4","gravatar_id":"","url":"https://api.github.com/users/guyellis","html_url":"https://github.com/guyellis","followers_url":"https://api.github.com/users/guyellis/followers","following_url":"https://api.github.com/users/guyellis/following{/other_user}","gists_url":"https://api.github.com/users/guyellis/gists{/gist_id}","starred_url":"https://api.github.com/users/guyellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guyellis/subscriptions","organizations_url":"https://api.github.com/users/guyellis/orgs","repos_url":"https://api.github.com/users/guyellis/repos","events_url":"https://api.github.com/users/guyellis/events{/privacy}","received_events_url":"https://api.github.com/users/guyellis/received_events","type":"User","site_admin":false},"created_at":"2019-06-06T17:13:56Z","updated_at":"2019-06-06T17:13:56Z","author_association":"NONE","body":"@robmcguinness - trying to schedule some time to do this. Hopefully before Monday evening. Please keep this open. Thanks."}}
{"actor":{"display_login":"guyellis"}}