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: http://192.168.0.2:8080/vscode, also, I got domain.com, and two subdomains ha.domain.com and vsc.domain.com, and when I open my HA instance from outside via traefik with subdomain ha.domain.com, my link in sidebar for vscode looks like this: https://ha.domain.com/vscode - 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 ha.domain.com/vscode - and so that both the vsc.domain.com domain and the prefix work at the same time.

Thanks.

Here is the screenshot for understanding.

Or maybe create a redirect from domain.com/vscode to vscode.domain.com - 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 vsc.domain.com/vscode - but in my case I'm looking for ha.domain.com/vscode