Skip to content

Commit c6c44d2

Browse files
authored
Correctly render related links
1 parent a7ee3c2 commit c6c44d2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Schema/JsonApi/DynamicEntitySchema.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,9 @@ public function getRelationshipRelatedLink($entity, string $name): LinkInterface
363363
$keys = array_combine($foreignKeys, $primaryKeys);
364364

365365
$url = Router::url(
366-
$this->_getRepositoryRoutingParameters($relatedRepository) + [
366+
$this->_getRepositoryRoutingParameters($relatedRepository) + $keys + [
367367
'_method' => 'GET',
368368
'action' => 'index',
369-
'?' => $keys,
370369
],
371370
$this->view->getConfig('absoluteLinks', false)
372371
);

0 commit comments

Comments
 (0)