No, I don’t see an option to override this. This code doesn’t seem right to me. We don’t want to blanketly replace #
as it could be legitimate. @Deltakosh It looks like you added this a long time ago Blaming Babylon.js/src/Tools/babylon.tools.ts at 64a56453aa18e8a0f99a5a5b15e60c3024cc37ff · BabylonJS/Babylon.js (github.com). Do you remember why you added this?
No idea! but @woniubushiniu can simply override the function with:
BABYLON.Tools.CleanUrl = function(url) {
return url;
}
This should fix it and let you override it Fix CleanURL override by sebavan · Pull Request #15056 · BabylonJS/Babylon.js · GitHub
It seems that this problem is still not solved in the new version
This should now work, if not, share a playground with the issue.
In the screenshot above, even if I adopt the method you suggested, the URL will still be modified.
There is a slight issue with the last fix. I’ll submit a fix later, but until then, this solution works without making any changes - clearUrlTest | Babylon.js Playground (babylonjs.com)
Thank you very much