We're encountering issues with incorporating javascript into masterpages. The "~/" root shortcut is not functioning as expected, forcing us to manually input the path to the javascript file from its usage location, for instance: "../../tooltip.js"
The challenge arises when the nested page is located in a different path, causing this method to fail since the path remains unchanged regardless of the nested page's position. Are there any solutions available to automatically resolve this issue similar to how it works for css files?
Thank you!