3 ms·
Another interesting related area is designing URLs for third-party components. Third-party component have to coexist with existing site navigation logic, so ge
by Sephr 2y ago
Another interesting related area is designing URLs for third-party components.
Third-party component have to coexist with existing site navigation logic, so generally you can't safely add URL-based configuration to such a component.
Fortunately, configuration can now be stored in fragment directives in order to hide this from normal site routing. e.g.
https://example.com/page#routing-info:~:additional-routing-info-for-third-party-component
With fragment directives, location.href and location.hash exclude the additional content in the hash after :~:
This is used in Transcend Consent Management for configuring parameters to debug and simulate various privacy experiences[1].
1. https://docs.transcend.io/docs/consent-management/reference/debugging-and-testing#config-overrides https://docs.transcend.io/docs/consent-management/reference/...