I am working on a SP online project, we have a dev site (/teams/ABCDev) and a production site (/teams/ABCProd). The Style library path is /teams/[Site]/Style Library.
When I am referencing any item from the style library in the home page (/teams/[site]/Pages/Default.aspx) I use ../style library/[Item]. Everything is working fine.
the problem happens when SP opens the site as /teams/[Site]/ without the (/Pages/Default.aspx), in this case, the (../style library) will point to /teams/Style library (which doesn't exist) instead of /teams/[site]/Style library
Is there a solution for this issue without having to use the path (/teams/ABCProd and /teams/ABCDev) and having to change it from dev to production?