{"action":"opened","issue":{"url":"https://api.github.com/repos/Nhowka/Elmish.Bridge/issues/12","repository_url":"https://api.github.com/repos/Nhowka/Elmish.Bridge","labels_url":"https://api.github.com/repos/Nhowka/Elmish.Bridge/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/Nhowka/Elmish.Bridge/issues/12/comments","events_url":"https://api.github.com/repos/Nhowka/Elmish.Bridge/issues/12/events","html_url":"https://github.com/Nhowka/Elmish.Bridge/issues/12","id":353442285,"node_id":"MDU6SXNzdWUzNTM0NDIyODU=","number":12,"title":"Endpoint location is not relative","user":{"login":"grishace","id":8962463,"node_id":"MDQ6VXNlcjg5NjI0NjM=","avatar_url":"https://avatars1.githubusercontent.com/u/8962463?v=4","gravatar_id":"","url":"https://api.github.com/users/grishace","html_url":"https://github.com/grishace","followers_url":"https://api.github.com/users/grishace/followers","following_url":"https://api.github.com/users/grishace/following{/other_user}","gists_url":"https://api.github.com/users/grishace/gists{/gist_id}","starred_url":"https://api.github.com/users/grishace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grishace/subscriptions","organizations_url":"https://api.github.com/users/grishace/orgs","repos_url":"https://api.github.com/users/grishace/repos","events_url":"https://api.github.com/users/grishace/events{/privacy}","received_events_url":"https://api.github.com/users/grishace/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-23T15:44:58Z","updated_at":"2018-08-23T15:44:58Z","closed_at":null,"author_association":"NONE","body":"When relative endpoint location is specified in `Program.withBridge` call, it is not relative during the runtime.\r\n\r\nConsider the scenario, when app is developed locally as standalone - i.e. all routes are root-based, but deployed to IIS as a virtual app under some folder.  \r\n\r\n[Here](https://github.com/Nhowka/Elmish.Bridge/blob/master/src/Client/Library.fs#L51)\r\nthe endpoint location with the existing path info is being replaced with  the one passed with the bridge configuration.\r\n\r\nMaybe it would be better to do this instead?\r\n`url.pathname <- url.pathname  + this.path`\r\n"}}
{"actor":{"display_login":"grishace"}}