The farthest path is working

But there is bug in parsing index.html, we merely added to what we have
instead of taking away everything after the last slash.