We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 420d7c4 commit 1718800Copy full SHA for 1718800
1 file changed
src/Server.php
@@ -869,12 +869,18 @@ private function parseLinkedMetadata(string $path)
869
$value = array_pop($linkMetaValue);
870
$url = $value['value'] ?? null;
871
872
+ if (strpos($foundPath, './') === 0) {
873
+ // Filepath is relative to the meta file
874
+ $path = $foundPath;
875
+ }
876
+
877
if ($path !== $foundPath) {
878
// Change the path from the request to the redirect (or not found) path
879
$url = substr_replace($path,
880
$url,
881
strpos($path, $foundPath),
- strlen($foundPath));
882
+ strlen($foundPath))
883
+ ;
884
}
885
886
$linkMeta = [
0 commit comments