Hi all –
@sebastian.brandhuber, thanks for sharing that solution. After running it by the team, it does seem a bit “brittle” – like you said, it doesn’t work in Workfiles, and while it works in the direction of getting from a context to a path, context_from_path()
wouldn’t work in certain circumstances. I’ll also mention: there is a `context_additional_entities core hook. It’s very much deprecated, and has been for a very long time (“It probably doesn’t do what you think it does and it will likely be removed in a future release.”). I’m not recommending you use it, just mentioning that it’s there.
If there’s a feature request in here that you think would facilitate this workflow, I encourage you to submit it. Thanks!