#5390·jupyterhub

Avoiding /user/:username with subdomain

Author: consideRatioCreated May 12, 2026Updated Aug 13, 2026
Labelsenhancement

When using subdomain configurations, URLs can become long and hard to read. So it could be a nice improvement to be able to opt-out of the /user/:username path appended to the user servers full URL.

I propose if its developed, its made opt-in at least initially, because I presume it could and would break some things if we would enable it by default in the user servers.


From a Zulip thread#jupyterhub > subdomain_host and how the pat/user/myusername is still used, me asking, @minrk answering:

I have setup a jupyterhub with subdomain_host for the first time, and get username.hub.example.org as a domain for user servers. I expected to see user servers at username.hub.example.org/lab though rather than username.hub.example.org/user/username/lab.

Should I settle for having /user/username path prefix, or is there something that can be configured to avoid it, alternatively developed without introducing too much complexity?

Setting subdomains doesn't change anything about paths, so it's in addition to, not instead of

There is a chance that just changing the user's base_url here to '/' would work.

could put it behind a subdomains_without_user_paths or some such option

I don't know what might break. Maybe nothing!