Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Links to RepositoryRestController methods ignore basePath #2509

Open
Assignees
@dschulten

Description

I use RepositoryRestController to add addititional resource methods to Spring Data Rest Entities. When I try to add links for them to my URI space using linkTo(methodOn(Controller.class).someMethod(), Spring Data Rest generates a URL without the configured basePath.

Possibly related: #1782

Workaround: use EntityLinks.linkFor(Entity.class).slash("foo).slash("bar").withRel("my-foo"), but that is of course not refactoring-safe.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /