Came across this via Larkware.  I’ll have to make sure this code finds its way into our custom base pages.