Working With Path Dones't Work

I'm trying to configure Traefik with path and seems like the middleware i have configured to strip the added prefix isn't working.
The issue is that I'm publishing a service with labels and it seems like the path is working.
When i try to access the service i the application redirects the url and basically breaks the link. has anyone encountered such and issue?
See labels below:
traefik.enable=true
traefik.http.middlewares.grafana-test_stripprefix.stripprefix.prefixes=/grafana-test
traefik.http.routers.grafana-test.entrypoints=http
traefik.http.routers.grafana-test.middlewares=grafana-test_stripprefix@docker
traefik.http.routers.grafana-test.rule=PathPrefix(/grafana-test)

I'm guessing something is missing or isn't configured properly.
If i do the same with NGINX i'm not redirected but i am getting an nginx response 404 because the path isn't valid

Thanks,