Allow referencing segments directly

Fix with prefix and suffix only if direct path is unavailable.