Source code syntax highlighting not working when running GitLab on a relative root URL

Summary

I am running standalone gitlab on mine server in docker. After upgrade to version 16.7 I have lost source code syntax highlighting.

What is the current bug behavior?

I am running gitlab in gitlab context (eg. https://mine.server/gitlab/) not in root (eg. https://mine.server/). That's the problem because the assets with the highlight javascript code is requested from wrong URL https://mine.server/assets/webpack/hl-groovy.30e109cb.chunk.worker.js (this URL returns 404 status).

What is the expected correct behavior?

Request the asset from URL https://mine.server/gitlab/assets/webpack/hl-groovy.30e109cb.chunk.worker.js (when I try the right URL it returns something)

Possible fixes

Add the context into the asset URL.