Prefix Strip Microservice

Hi all,

As a beginner I want to clarify and ask some questions regarding a problem I currently have.

We have a microservice architecture with several services.
The one I'm dealing with is integrated with workflow engine and it has its own UI. The only microservice that has UI.
When I want to go to, let's say, http://my-app/path

(which is gonna redirect me to the login page of workflow engine)
it redirects me to

http://my-app/login instead of http://my-app/path/login

This is a part of my config:

routes:
    # Rules to match the loginUrl and redirectUrl can be added into
    # your current router.
    - match: Host(`{{ .Values.traefik.ingress.host }}`) && PathPrefix(`{{ .Values.traefik.ingress.path }}`)
      kind: Rule
      middlewares:
        - name: {{ .Release.Name }}
        - name: {{ .Release.Name }}-strip
        - name: {{ .Release.Name }}-ratelimit
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: {{ .Release.Name }}-strip
  namespace: {{ .Release.Namespace }}
spec:
  stripPrefix:
    prefixes:
      - {{ .Values.traefik.ingress.path }}

Now I am pretty sure that this is because the strip middleware config isn't it?
But when I want to go to http://my-app/path/actuator, there is no problem here.

What I understand is my issue related to redirection. I mean one solution might be adding prefix to every call from workflow engine but that would be difficult because I don't have much access to engine's codes or its UI modules.

The other one might be removing the stripPrefix config but I don't know the affects of this solution to other endpoints like actuator or graphql.

Lastly, I know there is this commented out line

# Rules to match the loginUrl and redirectUrl can be added into
# your current router.

This could solve the login page issue but what happens if workflow has some internal redirections?

Thanks in advance