Add path and parent path to be sent to client.
Correctly use parent path on pressing the 'up' button