Merge pull request #1300 from carlosmn/ref-leading-slash Crash when resolving a ref starting with "/"