alphagov / consent-api

Service for sharing user consent to cookies across multiple domains
https://consent-api-bgzqvpmbyq-nw.a.run.app
MIT License
8 stars 0 forks source link

Documentation doesn't explain how to identify links that should be decorated #94

Closed andyhd closed 1 year ago

andyhd commented 1 year ago

The Consent API client Javascript automatically decorates link URLs with the UID (if it exists). But it only decorates links which have a data-consent-share data attribute. This is not mentioned in the documentation and so implementors do not have all the information they need to integrate with the API.

andyhd commented 1 year ago

James King at DfE said that the content on https://find-employer-schemes.apprenticeships.education.gov.uk/ is managed by a CMS, and so adding data-attributes to the links is not straightforward.

An alternative method of identifying links to decorate would be easier in this case. Some options to consider: