4.2.5 subfolder fails to load properly, links all include the #
I am using traefik and am having some difficulties. I can get the url to not expose the "#" by using the following in the docker-compose.override.yml and the original docker-compose.yml for gitlab
DOMAIN_NAME: example.com CONTAINER_NAME: medms
services:
app:
environment:
- "ORGANIZATIONS_INSTALLATION_URL=https://${DOMAIN_NAME}/"
- "ORGANIZATIONS_URL_BASE_PATH=${CONTAINER_NAME}"
labels:
- "traefik.http.services.${CONTAINER_NAME}.loadbalancer.server.port=${PORT:-8000}"
- "traefik.http.routers.${CONTAINER_NAME}.entrypoints=web"
- "traefik.http.routers.${CONTAINER_NAME}.rule=Host(`${DOMAIN_NAME}`) && PathPrefix(`/${CONTAINER_NAME}
- "traefik.http.routers.${CONTAINER_NAME}.middlewares=https-redirect"
- "traefik.http.middlewares.https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.${CONTAINER_NAME}-secure.tls=true"
- "traefik.http.routers.${CONTAINER_NAME}-secure.tls.certresolver=tlsresolver"
- "traefik.http.routers.${CONTAINER_NAME}-secure.rule=Host(`${DOMAIN_NAME}`) && PathPrefix(`/${CONTAINER_NAME}`)"
- "traefik.http.routers.${CONTAINER_NAME}-secure.middlewares=${CONTAINER_NAME}-sslheaders"
- "traefik.http.middlewares.${CONTAINER_NAME}-sslheaders.headers.customrequestheaders.X-Script-Name=/${CONTAINER_NAME}"
- "traefik.http.middlewares.${CONTAINER_NAME}-sslheaders.headers.customrequestheaders.SCRIPT_NAME=/${CONTAINER_NAME}"
I can access the website at example.com/medms. There is no format to the page. The links are all shown, If I hover over a link it shows as example.com/medms/about. When I click on the link it sends me to example.com/#/medms/about.
If I disable the SCRIPT_NAME
The "#" comes back the the base url and I get example.com/#/medms/
related to issue #1045 (closed)