I provision custom page layout through elements.xml
In my custom page layout i add
<asp:ContentPlaceHolder id="PlaceHolderAdditionalPageHead" runat="server"> <script src="/SiteAssets/SomeScript.js"></script> </asp:ContentPlaceHolder>
which works fine. But i want this code to be site url independent, meaning this needs to work on any site collection either with managed path or not. How can i inject ~site token into script tag?