Quote from: Jean-Baptiste Sarrodie on June 17, 2022, 19:11:19 PMSo I have the deep conviction that it is possible in some ways, but still haven't find how.
Regards,
JB
Quote from: ChampagnePerry on June 17, 2022, 11:07:12 AMAt first I tried writing a script to load all the scripts with a "corrected" path, which was taking me ages and prone to error.
This morning I had a much simpler idea, rewrite the pathname as the page loads.
After a bit of experimentation I found I only needed to change the SharePoint site name portion of the path so I added the following code to the top of the <head> tag in index.html.
<script>
var searchStr="/BS-SS-Data%20and%20Insight%20-%20Documents/";
var replaceStr="/BS-SS-~1/";
myPath=window.location.pathname;
myPath=myPath.replace(window.searchStr,window.replaceStr);
window.location.pathname=myPath;
</script>
Now it works perfectly (well for me) hope this helps.