Closed (fixed)
Project:
JSON:API Extras
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Jun 2018 at 15:55 UTC
Updated:
10 Apr 2019 at 20:59 UTC
Jump to comment: Most recent
Comments
Comment #2
ericpughUgh. I'm not sure how to go about this. At first I was hoping to be able to replace the domain name in the
EntityNormalizerTrait, but maybe this would require creating a custom ServiceProvider to replace jsonapi's linkManager?Comment #3
wim leersThis does not need JSON:API or JSON:API Extras settings. You can achieve this using
sites.php, see https://api.drupal.org/api/drupal/sites%21example.sites.php/8.7.xComment #4
ericpughSorry. I should have closed this.
In case it helps anyone else, what I ended up doing is creating an
EventSubscriberin a custom module that looks like this:Thanks!
Comment #5
wim leersThat … works. :) But I think #3 would be a lot simpler!