Handle /// references with absolute path

fixes #800 
Might be worth factoring out into another function.