Additional prefix for subdomain

Hey guys!

Could someone help with understand, it's possible to add some rule in one of my subdomain.

I got:

  1. homeassistant container
  2. vscode container

In HA container I use iframe for add in sidebar link to my vscode, originally link is looks like that:, also, I got, and two subdomains and, and when I open my HA instance from outside via traefik with subdomain, my link in sidebar for vscode looks like this: - so questions is, it's possible to add some prefix to my vscode instance, for correcting redirection via my iframe in Home Assistant?

I meant, something like - and so that both the domain and the prefix work at the same time.


Here is the screenshot for understanding.

Or maybe create a redirect from to - it's possible? 'cuz I didn't see the needed functions at configuration as I think.

I can add prefix for this domain, like this:

- traefik.http.routers.homeassistant-vscode.middlewares=custom_repath
- traefik.http.middlewares.custom_repath.replacepathregex.regex=^/$$
- traefik.http.middlewares.custom_repath.replacepathregex.replacement=/vscode

It mean - but in my case I'm looking for