Open alexweissman opened 8 years ago
Its not meant to be used with URLs; it just locates files from the filesystem.
Fair enough. However, in many applications (including Grav) there is a relationship between relative file paths and relative URLs. Is there an alternative preferred way to build URLs? Or, should I just do something like:
$locator->findResource('images/favicon.ico', false) . '?v=2';
For urls there's twig function called url()
(both in Grav and Gantry), which uses streams internally.
findResource
seems to have trouble resolving URIs that contain query parameters. For example, this seems to work fine:However if I do this:
Not sure if this is the intended behavior.