In general, the frontend can’t access an absolute path on the server without a dedicated server extension… one can’t even really assume the contents are even backed by a filesystem, as there are database-backed ones, etc.
On jupyterlab-starters we integrate with the ContentsManager
on the server side.