Unable to run Admin UI from a sub-path

I’m trying to serve strapi from a subdirectory (http://localhost/strapi) by using proxy_pass on nginx, but the admin panel doesn’t work. The page opens but then it tries to load everything straight from http://localhost instead of http://localhost/strapi. I “fixed” that by replacing all those links using nginx, but now I’m facing a different problem: when I open content manager, it says “page not found”. After reading through some of strapi source code, I figured out it’s not parsing the URL correctly. Everything is fine if I access the strapi server directly, but if I do it through proxy_pass, the frontend breaks

This topic has been created from a Discord post (1232746913925828609) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

have you found a solution? :slightly_smiling_face:

this is still not fixed