I have the following code, but I am very sure it will only work in the homepage of our website, and not when having the following scenario
-root
-web1
-web2
<SharePoint:ScriptLink language="javascript" name="/js/SP.Ribbon.js" LoadAfterUI="true" OnDemand="false" runat="server" Localizable="false"/>
ExecuteOrDelayUntilScriptLoaded(initCOBRibbon, '/js/SP.Ribbon.js');
Is there anyspecific way to put in the name attribut that it should be the layouts in the root?