strip /todomvc/ from path if accessed directly

Fixed #501