I am at a position where I need a value from a resource template (either page, file, image, video etc.).
Based on that value I either need to return that resource, or redirect (to a login page, noting-found paget etc.).
I could simply register a hook for that (
rout:after) and handle it from there, but the problem is that I really want this to be compatible with other plugins as well. Meaning either I need this hook to be fired first (no matter what!), or I need to manually query the url inside the route instance (without creating an infinite loop of course).
So how would one go about getting the resource from an url as it would have been if one puts it into the browsers-search bar?