{"action":"created","issue":{"url":"https://api.github.com/repos/rgrempel/elm-route-hash/issues/15","repository_url":"https://api.github.com/repos/rgrempel/elm-route-hash","labels_url":"https://api.github.com/repos/rgrempel/elm-route-hash/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/rgrempel/elm-route-hash/issues/15/comments","events_url":"https://api.github.com/repos/rgrempel/elm-route-hash/issues/15/events","html_url":"https://github.com/rgrempel/elm-route-hash/issues/15","id":159848144,"number":15,"title":"How to handle sub-directory base URLs","user":{"login":"amitaibu","id":125707,"avatar_url":"https://avatars.githubusercontent.com/u/125707?v=3","gravatar_id":"","url":"https://api.github.com/users/amitaibu","html_url":"https://github.com/amitaibu","followers_url":"https://api.github.com/users/amitaibu/followers","following_url":"https://api.github.com/users/amitaibu/following{/other_user}","gists_url":"https://api.github.com/users/amitaibu/gists{/gist_id}","starred_url":"https://api.github.com/users/amitaibu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitaibu/subscriptions","organizations_url":"https://api.github.com/users/amitaibu/orgs","repos_url":"https://api.github.com/users/amitaibu/repos","events_url":"https://api.github.com/users/amitaibu/events{/privacy}","received_events_url":"https://api.github.com/users/amitaibu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-12T21:16:09Z","updated_at":"2016-06-13T08:35:21Z","closed_at":null,"body":"Assuming:\r\n\r\n```elm\r\ndelta2url : Model -> Model -> Maybe UrlChange\r\ndelta2url previous current =\r\n    case current.activePage of\r\n        Login ->\r\n            Just <| UrlChange NewEntry \"/#login\"\r\n```\r\n\r\nAnd my app's path is `https://example.com/subdirectory` then the above code will change the URL to `https://example.com/#login`.\r\n\r\nHowever the desired/typical outcome should be `https://example.com/subdirectory/#login`"},"comment":{"url":"https://api.github.com/repos/rgrempel/elm-route-hash/issues/comments/225519678","html_url":"https://github.com/rgrempel/elm-route-hash/issues/15#issuecomment-225519678","issue_url":"https://api.github.com/repos/rgrempel/elm-route-hash/issues/15","id":225519678,"user":{"login":"amitaibu","id":125707,"avatar_url":"https://avatars.githubusercontent.com/u/125707?v=3","gravatar_id":"","url":"https://api.github.com/users/amitaibu","html_url":"https://github.com/amitaibu","followers_url":"https://api.github.com/users/amitaibu/followers","following_url":"https://api.github.com/users/amitaibu/following{/other_user}","gists_url":"https://api.github.com/users/amitaibu/gists{/gist_id}","starred_url":"https://api.github.com/users/amitaibu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitaibu/subscriptions","organizations_url":"https://api.github.com/users/amitaibu/orgs","repos_url":"https://api.github.com/users/amitaibu/repos","events_url":"https://api.github.com/users/amitaibu/events{/privacy}","received_events_url":"https://api.github.com/users/amitaibu/received_events","type":"User","site_admin":false},"created_at":"2016-06-13T08:35:21Z","updated_at":"2016-06-13T08:35:21Z","body":"Yeah, I tried removing the leading `/` , but this results with an error:\r\n\r\n`Uncaught SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'http:/#404' cannot be created in a document with origin 'http://localhost:3000' and URL 'http://localhost:3000/'`\r\n\r\nIt seems to remove the base url."}}
{"actor":{"display_login":"amitaibu"}}