spring-projects / spring-projects/spring-hateoas

Support for relative href links?

Open
#330 18 comments 26 reactions 2 assignees View on GitHub

@gregturn is already working on this.

Since May 25, 2017.

process: in progress question
Dominant language
Java
Stars
1.1k
Forks
476
PR merge metrics
No merged PRs in 30d

Description

The Stateless.co HAL documentation and IETF draft spec both use relative URLs (with absolute paths) in all their examples, e.g.

{ "_links": { "self": { "href": "/orders/523" } } }

However, the links generated by ControllerLinkBuilder and EntityLink are all absolute:

{ "_links": { "self": { "href": "http://localhost:8080/orders/523" } } }

Is there any way to make them generate relative links instead?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.