Sharing Voila URLs with username embedded in URL

Hi,

I have set up TLJH with s3.

Therefore each user should be able to see the same information.

The issue I have is as follows:

https://jupyterhub.x.com/user/user_x/voila/render/notebook.ipynb

If I share the URL above, another user will get an access denied error.
If I changed “user_x” to “any”, it will work for the other user but the router will route it to a URL with their username.

That solves one issue BUT if that user then shares the URL with another user, they fall into the same issue.

How can we get shareable links which work for everyone?

Thanks

The proper way to share a link is to replace /user/user_x/ with /hub/user-redirect/
See Frequently asked questions — JupyterHub 1.5.0 documentation for more info.

1 Like

Thanks.

This seems to work the same as replacing the user with “any”.

I.e. the URL resolves to one which is user specific and that subsequent URL can’t be copied and pasted onwards.

That worked for me. Thank you! :+1:

1 Like