Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / hal / src / LinkManager / RelationLinkManager.php
index a33b6c32bbd3fad06d602e88cf233457a3bd18ca..ec631416c9bc823fa3d53ca7d5254d21536efb2f 100644 (file)
@@ -68,7 +68,7 @@ class RelationLinkManager extends LinkManagerBase implements RelationLinkManager
     // module is installed that adds such content, but requires this URL to be
     // different (e.g., include a language prefix), then the module must also
     // override the RelationLinkManager class/service to return the desired URL.
-    $uri = $this->getLinkDomain() . "/rest/relation/$entity_type/$bundle/$field_name";
+    $uri = $this->getLinkDomain($context) . "/rest/relation/$entity_type/$bundle/$field_name";
     $this->moduleHandler->alter('hal_relation_uri', $uri, $context);
     // @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.0. This
     // hook is invoked to maintain backwards compatibility