Automated response: Enforce keep_session more aggressively
This hotfix puts in place enforce_sessioned_html to enforce sessions on all links (pointing to the base URL) when possible.
This is not an ideal fix as it makes us have to evaluate the entire output HTML and then run preg_replace on it. However, essential cookies are enforced once a selection is made on cookie consent; so this should rarely ever actually be needed.
Nonetheless, it seems to work quite well. Though it will not work on relative URLs, only absolute ones.
This hotfix puts in place enforce_sessioned_html to enforce sessions on all links (pointing to the base URL) when possible.
This is not an ideal fix as it makes us have to evaluate the entire output HTML and then run preg_replace on it. However, essential cookies are enforced once a selection is made on cookie consent; so this should rarely ever actually be needed.
Nonetheless, it seems to work quite well. Though it will not work on relative URLs, only absolute ones.