<% currentAppname = currentApp ? currentApp.name : 'search'; // TODO: search fallback is not always safe assumption %>