{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-hateoas/issues/434","repository_url":"https://api.github.com/repos/spring-projects/spring-hateoas","labels_url":"https://api.github.com/repos/spring-projects/spring-hateoas/issues/434/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-hateoas/issues/434/comments","events_url":"https://api.github.com/repos/spring-projects/spring-hateoas/issues/434/events","html_url":"https://github.com/spring-projects/spring-hateoas/issues/434","id":133638867,"number":434,"title":"ControllerLinkBuilder does not take Spring Data REST's base path into account","user":{"login":"rheicide","id":953254,"avatar_url":"https://avatars.githubusercontent.com/u/953254?v=3","gravatar_id":"","url":"https://api.github.com/users/rheicide","html_url":"https://github.com/rheicide","followers_url":"https://api.github.com/users/rheicide/followers","following_url":"https://api.github.com/users/rheicide/following{/other_user}","gists_url":"https://api.github.com/users/rheicide/gists{/gist_id}","starred_url":"https://api.github.com/users/rheicide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rheicide/subscriptions","organizations_url":"https://api.github.com/users/rheicide/orgs","repos_url":"https://api.github.com/users/rheicide/repos","events_url":"https://api.github.com/users/rheicide/events{/privacy}","received_events_url":"https://api.github.com/users/rheicide/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-02-15T07:02:47Z","updated_at":"2017-01-09T09:29:23Z","closed_at":null,"body":"I have the repository REST base path set to `/rest`, and a `@RepositoryRestController` with some custom handlers:\n\n``` java\n@RepositoryRestController\npublic class RestController {\n    @RequestMapping(value = \"/foo\", method = RequestMethod.GET)\n    public ResponseEntity<Bar> foo() {\n        return new ResponseEntity<>(new Bar(), HttpStatus.OK);\n    }\n    ...\n}\n```\n\n``` java\npublic class Bar extends ResourceSupport {\n    public Bar() {\n        ...\n        add(linkTo(methodOn(RestController.class).foo()).withSelfRel());\n    }\n}\n```\n\nThe endpoint works fine at `http://localhost:8080/rest/foo`, however, the link is incorrect:\n\n``` json\n{\n  ...\n  _links: {\n    self: {\n      href: \"http://localhost:8080/foo\"\n    }\n  }\n}\n```\n\nFor some reason, the base path (`/rest`) was ignored.\n\nI'm using Spring HATEOAS 0.19.0.RELEASE (comes with Spring Boot 1.3.1.RELEASE).\n"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-hateoas/issues/comments/271240673","html_url":"https://github.com/spring-projects/spring-hateoas/issues/434#issuecomment-271240673","issue_url":"https://api.github.com/repos/spring-projects/spring-hateoas/issues/434","id":271240673,"user":{"login":"Doogiemuc","id":512835,"avatar_url":"https://avatars.githubusercontent.com/u/512835?v=3","gravatar_id":"","url":"https://api.github.com/users/Doogiemuc","html_url":"https://github.com/Doogiemuc","followers_url":"https://api.github.com/users/Doogiemuc/followers","following_url":"https://api.github.com/users/Doogiemuc/following{/other_user}","gists_url":"https://api.github.com/users/Doogiemuc/gists{/gist_id}","starred_url":"https://api.github.com/users/Doogiemuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Doogiemuc/subscriptions","organizations_url":"https://api.github.com/users/Doogiemuc/orgs","repos_url":"https://api.github.com/users/Doogiemuc/repos","events_url":"https://api.github.com/users/Doogiemuc/events{/privacy}","received_events_url":"https://api.github.com/users/Doogiemuc/received_events","type":"User","site_admin":false},"created_at":"2017-01-09T09:29:23Z","updated_at":"2017-01-09T09:29:23Z","body":"Sorry for the duplicate. I already opened the spring-data-rest JIRA ticket. before I found this here.   I am actually not sure, if this is more a spring-hateoas or a spring-data-rest issue ... What do you think?"}}
{"actor":{"display_login":"Doogiemuc"}}