Skip to content

Support for relative href links?Β #330

Open
@pimlottc

Description

@pimlottc

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?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions