Global UI Scripts do not run on $knowledge.do (or any angular page)DescriptionGlobal UI scripts do not run on $knowledge.do even though the wiki clearly indicates that global ui scripts "loads on every page in the system." Pages that start with a dollar sign ($), UI pages that have the "direct" flag checked, and pages that are loaded with URL parameter "sysparm_direct=true" omit all ServiceNow-specific Javascript and CSS when loading. This is expected behavior. These pages are intentionally limited by the developer who created the page. This community article describes why someone may want to use a direct UI page in an app:https://community.servicenow.com/community?id=community_blog&sys_id=999c2ee1dbd0dbc01dcaf3231f96192cSteps to Reproduce Create a UI Script, select the Global box, with the code "function helloWorld() { alert('Hello World') }"Create a UI Page, select the Direct box, with the code "<script>helloWorld()</script>"Save the page and press "Try It" You will see a blank page, and if you look in the developer console, there will be a javascript error that says "Uncaught ReferenceError: helloWorld is not defined" If you edit the UI Page, uncheck the Direct box, and Try It again, you will see an alert box that says "Hello World" When the Direct box is checked, it is expected not to load any global ui scripts before loading the page. It does not load any ServiceNow-specific script or styles. The same is true for pages starting with a dollar sign.WorkaroundThis behaviour is by design. For any workaround on a case by case basis, customers should work with the team who developed the Direct page to further develop on the specific use case.Related Problem: PRB661318