Help with setting sup-path for the internal applications

Hello, everyone; I wanted your help defining several applications on the sub-path on my subdomain.
For example, I used "Wallabg" application and want to access him from the "https://example.domain.com/wallabag" address.
When I try to access the application, the pages redirect me to the subdomain, not the subpath that I defined; this creates problems when loading the application.
my config is :

routers:
  wallabag-router:
        rule: "Host(`example.domain.com`) && PathPrefix(`/wallabag`)"
        service: wallabag-service
        middlewares:
          - test
          - test2
services:
    wallabag-service:
      loadBalancer:
        serversTransport: insecureTransport
        servers:
          - url: "http://192.168.16.17"
middlewares:
    test:
      stripprefix:
        prefixes: "/wallabag/"
    test2:
      redirectregex:
        regex: "^(.*/wallabag)$"
        replacement: ${1}/
  

More Help,
I have a similar problem in another system: some static files with the same issue (point to the subdomain instead of the subpath ). How can I add the subpath to the URL of these files?

The sample files:
favicon.svg?, site.webmanifest?v=2

I appreciate your help.

My usual statement:

Not all web applications like to be placed on a path, they usually expect to be on root and therefore respond with links to scripts and images with absolute / path.

This only work if some kind of "base path" can be configured within the application.

Because of this, it’s best practice to have web applications on their own sub-domain.