Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When configuring the the module under `admin/structure/external-entity-types/manage/{my_entity}` you can edit the endpoint url. But having a trailing slash will result in an error, since the guzzle url will have an additional slash hardcoded...
Solution
Enforce having or not having a trailing slash at this very field. And handle config storage accordingly.
Comment | File | Size | Author |
---|---|---|---|
#4 | external_entities-rest_endpoint_no_slash-2878806-4.patch | 714 bytes | rp7 |
Comments
Comment #2
tassilogroeper CreditAttribution: tassilogroeper at WONDROUS commented- I took the liberty to change to array short syntax.
- Change the endpoint input to url. Added description hinting to the trailing slash.
- change the `default_limit` input to number. Set minimal input number to zero.
Comment #3
larskhansen CreditAttribution: larskhansen as a volunteer commentedLooks good to me.
Comment #4
rp7 CreditAttribution: rp7 for Government of Flanders commentedThank you for the patch.
The 2.x version of this module was introduced a few weeks ago: #2995140: External Entities 2.x
This fixes the short array syntax & the default_limit field type (number).
This doesn't fix the slash issue however. Attached patch solely does this.
Comment #6
rp7 CreditAttribution: rp7 for Government of Flanders commentedPatch was committed & credited you tassilogroeper, thanks!