Skip to content

Commit f4edb8a

Browse files
committed
Allow custom routing of relationship links
1 parent fd4b046 commit f4edb8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Schema/JsonApi/DynamicEntitySchema.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,10 @@ public function getRelationshipRelatedLink($entity, string $name): LinkInterface
359359
$keys = array_combine($foreignKeys, $primaryKeys);
360360

361361
$url = Router::url(
362-
$this->_getRepositoryRoutingParameters($relatedRepository) + [
362+
$this->_getRepositoryRoutingParameters($relatedRepository) + $keys + [
363363
'_method' => 'GET',
364364
'action' => 'index',
365-
'?' => $keys,
365+
'?' => $keys
366366
],
367367
$this->view->getConfig('absoluteLinks', false)
368368
);

0 commit comments

Comments
 (0)