CloseRelease dependant OneUI theming
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:this.beforePageLoad><![CDATA[#{javascript:var theme = session.getNotesVersion().startsWith("Release 8") ? "themeR8" : "themeR9";
if ( ! theme.equals(context.getSessionProperty("xsp.theme"))) {
context.setSessionProperty("xsp.theme", theme);
context.redirectToPage(context.getUrl().toSiteRelativeString(context));
}}]]></xp:this.beforePageLoad>
</xp:view>
Tagged with theme oneui