- Issue created by @msn5158
- First commit to issue fork.
- Merge request !68Issue #3437013: Obtain the referrer URL or referrer query via a token → (Open) created by jurgenhaas
- last update
about 1 year ago PHPLint Failed - Status changed to Needs review
about 1 year ago 10:10am 11 April 2024 - 🇩🇪Germany jurgenhaas Gottmadingen
I just came across the same requirement and implemented that in the MR above. Please review.
- last update
about 1 year ago 78 pass - 🇨🇭Switzerland berdir Switzerland
This would need to consider cacheability metadata for http headers, which I'm not sure is reliably possible as page cache for example won't rely on that.
Ajax should maybe have its own handling, similar to what views already does in its ajax controller.
However, I have found that almost all ajax modules do not support tokens, such as block_ajax → , ajax_big_pipe → , io → , quicktabs → . When I enable them, if a token is used in them, it will be invalidated, it blocks the retrieval of data from the current page. However, if I close ajax, everything becomes normal again, I haven't seen any Ajax modules using caching to solve this problem.
- First commit to issue fork.
- last update
about 1 year ago 78 pass - 🇩🇪Germany jurgenhaas Gottmadingen
I just realized that the
referrer-url
token can not be of typetoken
because the referrer header value is an absolute and probably even an external URL. That can not be handled by the url token type. Instead, this token should provide access to the URL parts explicitly. I've updated the MR accordingly.