Open o1y opened 1 week ago
In the re-implementation of #10280, the return values of fields() are cached using Blink. This also affects frontend augmentation, and it's possible for incorrect values of an entry in one language to leak into another locale of the entry.
Oops. 🤷♂️
Bug description
We have a multi-site where the URLs are sometimes generated incorrectly. This can result in a URI redirecting to the wrong site language, for example, you're on the Default Site and the link leads to a different site.
How to reproduce
In my case this seems to happen with the link field type. This is my template:
This bug is completely random. It's almost impossible to reproduce, but it happens since Statamic 5. I would guess it's because of one of the new introduced cache commits, but I don't know how to create a reliable reproduction case 🤷♂️
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response