Fix query to match from beginning of path