Discourse rewriting url path behaviour failing due to subfolder

Some help from my hosting:

Weird bug indeed. I don’t see where it redirects either, seems to be returning the correct page and then redirected by Javascript. It’s not the nginx config, it is reaching the application server.