mu-cl-resources icon indicating copy to clipboard operation
mu-cl-resources copied to clipboard

[Bug] Relationship links are appended with request query params

Open Windvis opened this issue 3 years ago • 0 comments

The following request GET /resource-name?filter[attribute-name]=value&page[number]=0

will generate a response that includes the following relationship links:

...
{
	"relationships": {
		"relationship-name": {
			"links": {
				"self": "/resource-name/726650c7842a524c08044c5b78f7d352/links/relationship-name?filter[attribute-name]=value&page[number]=0",
				"related": "/people/726650c7842a524c08044c5b78f7d352/mandatories"
			},
		},

	}
}
...

The self link includes the query params of the request which isn't correct.

Windvis avatar Jul 30 '21 06:07 Windvis