You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
findResource seems to have trouble resolving URIs that contain query parameters. For example, this seems to work fine:
$locator = new UniformResourceLocator(MY_BASE_DIR);
$locator->addPath('assets', '', 'assets');
echo $locator->findResource('images/favicon.ico', false);
// prints "assets/images/favicon.ico"
However if I do this:
$locator = new UniformResourceLocator(MY_BASE_DIR);
$locator->addPath('assets', '', 'assets');
echo $locator->findResource('images/favicon.ico?v=2', false);
// prints the empty string
Not sure if this is the intended behavior.
The text was updated successfully, but these errors were encountered:
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:
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.
The text was updated successfully, but these errors were encountered: