You are setting a relative path on the server, which when sent to the client becomes an absolute path, you are then reading the absolute path from the client, hence what you are seeing.

Gary