Mapping admin without /admin/ i url?

We’re having some issues when trying to vhost the /admin part of the url.

Our vhost:

mapping.admin.source = /
mapping.admin.target = /admin

This works for the most part but some things in the admin stops working. Like the Component View overlay is missing. This is because the live edit urls are wrong. They end up like this. Enonic XP expects something between the slashes?

<link id="live-edit-css" rel="stylesheet" href="//live-edit/styles/_all.css"/>

If we change our vhost to this it works but then we’re stuck with /admin in the url

mapping.admin.source = /admin
mapping.admin.target = /admin

I think this is a known issue - placed way down in the backlog where parts of the admin are not generating urls correctly. Let’s see what we can do!