How to select by default Apps instead of Favorites tab on RfWebUI Theme

How to select by default Apps instead of Favorites tab on RfWebUI Theme

book

Article ID: CTX262102

calendar_today

Updated On:

Description

Unified Gateway (ICA Proxy set to NO) without Storefront will land on the Favorites page.

Default:



Goal:

Environment

The above mentioned sample code is provided to you as is with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the sample code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the sample code.

Resolution

The Default Solution, when using Storefront, is to follow CTX216893 or by changing as below:



We can use NetScaler Responder feature to force the Endpoint /Home/Configuration to return "defaultViews=auto" with a value of "apps" or "desktops".

We achieve this by creating a responder policy:
add responder policy res_pol_configuration "HTTP.REQ.URL.PATH.ENDSWITH(\"Home/Configuration\")" res_act_configuration2

The action we need if of the type "Responde with". The content of the action varies each version. If your version is not listed below or the sample doesn't work you will need to manually create the contents of the action: escape all / -> \/, escape all " -> \". Separate each line, following the example below. Note that each string contained between each " needs to be less than 255 chars.

13.0:
add responder action test_CTX262102-v130 respondwith "\n\"HTTP/1.1 200 OK\\r\\n\"+\n\"Cache-Control: no-cache, no-store, max-age=0\\r\\nConnection: close\\r\\nContent-Type: application/xml; charset=utf-8\\r\\nX-Citrix-Application: Receiver for Web\\r\\n\\r\\n\"+\n\"<clientSettings xmlns=\\\'http://citrix.com/delivery-services/webAPI/2-6/clientConfig\\\'>\"+\n\"<session timeout=\\\"20\\\" userLanguages=\\\"en-US,en;q=0.9\\\" />\"+\n\"<authManager getUsernameURL=\\\"Authentication/GetUserName\\\" logoffURL=\\\"Authentication/Logoff\\\" changeCredentialsURL=\\\"ExplicitAuth/GetChangeCredentialForm\\\" loginFormTimeout=\\\"5\\\" webviewReturnURL=\\\"ExplicitAuth/Bounce\\\" webviewResumeURL=\\\"ExplicitAuth/ResumeForms\\\" allowSelfServiceAccountManagementURL=\\\"ExplicitAuth/AllowSelfServiceAccountManagement\\\" />\"+\n\"<storeProxy keepAliveURL=\\\"Home/KeepAlive\\\">\"+\n\"<resourcesProxy listURL=\\\"Resources/List\\\" resourceDetails=\\\"default\\\" />\"+\n\"<sessionsProxy listAvailableURL=\\\"Sessions/ListAvailable\\\" disconnectURL=\\\"Sessions/Disconnect\\\" logoffURL=\\\"Sessions/Logoff\\\" />\"+\n\"<clientAssistantProxy getDetectionTicketURL=\\\"ClientAssistant/GetDetectionTicket\\\" getDetectionStatusURL=\\\"ClientAssistant/GetDetectionStatus\\\" />\"+\n\"</storeProxy>\"+\n\"<pluginAssistant enabled=\\\"true\\\" upgradeAtLogin=\\\"false\\\" showAfterLogin=\\\"false\\\">\"+\n\"<win32 path=\\\"http://downloadplugins.citrix.com/Windows/CitrixWorkspaceApp.exe\\\" />\"+\n\"<macOS path=\\\"http://downloadplugins.citrix.com/Mac/CitrixWorkspaceApp.dmg\\\" minimumSupportedOSVersion=\\\"10.6\\\" />\"+\n\"<html5 enabled=\\\"Fallback\\\" platforms=\\\"Firefox;Chrome;Version/([6-9]|\\\\d\\\\d).*Safari;MSIE \\\\d\\\\d;Trident/([6-9]|\\\\d\\\\d);Android;iPad;iPhone;iPod;\\\" launchURL=\\\"clients/HTML5Client/src/SessionWindow.html\\\" preferences=\\\"\\\" singleTabLaunch=\\\"false\\\" chromeAppOrigins=\\\"chrome-extension://haiffjcadagjlijoggckpgfnoeiflnem\\\" chromeAppPreferences=\\\"\\\" />\"+\n\"<protocolHandler enabled=\\\"true\\\" platforms=\\\"(Macintosh|Windows NT|Linux|CrOS).*((Firefox/((5[2-9]|[6789][0-9])|\\\\d\\\\d\\\\d))|(Chrome/((4[2-9]|[56789][0-9])|\\\\d\\\\d\\\\d)))|Macintosh.*Version/(1[2-9]|[2-9][0-9]).*Safari/\\\" skipDoubleHopCheckWhenDisabled=\\\"false\\\" />\"+\n\"</pluginAssistant>\"+\n\"<userInterface autoLaunchDesktop=\\\"false\\\" multiClickTimeout=\\\"3\\\" enableAppsFolderView=\\\"true\\\">\"+\n\"<workspaceControl enabled=\\\"true\\\" autoReconnectAtLogon=\\\"true\\\" logoffAction=\\\"disconnect\\\" showReconnectButton=\\\"false\\\" showDisconnectButton=\\\"false\\\" />\"+\n\"<receiverConfiguration enabled=\\\"true\\\" downloadURL=\\\"ServiceRecord/GetDocument/receiverconfig.cr\\\" />\"+\n\"<uiViews showDesktopsView=\\\"true\\\" showAppsView=\\\"true\\\" defaultView=\\\"apps\\\" />\"+\n\"<appShortcuts enabled=\\\"false\\\" allowSessionReconnect=\\\"false\\\" />\"+\n\"</userInterface>\"+\n\"<featureToggles>\"+\n\"<feature name=\\\"Citrix.DeliveryServices.WingImpl.AlwaysOnTracing\\\" enabled=\\\"True\\\" />\"+\n\"<feature name=\\\"Citrix.DeliveryServices.DazzleResources.Web.AlwaysOnTracing\\\" enabled=\\\"True\\\" />\"+\n\"<feature name=\\\"Citrix.DeliveryServices.DazzleResourcesController.AnonymousPrelaunch\\\" enabled=\\\"True\\\" />\"+\n\"<feature name=\\\"Citrix.StoreFront.Roaming.NetScalerConfiguration\\\" enabled=\\\"True\\\" />\"+\n\"<feature name=\\\"Citrix.DeliveryServices.Admin.NetScalerImport\\\" enabled=\\\"True\\\" />\"+\n\"<feature name=\\\"Citrix.DeliveryServices.WebUI.ClientDetection.IfRequiredByApps\\\" enabled=\\\"True\\\" />\"+\n\"<feature name=\\\"Citrix.DeliveryServices.WebUI.WebviewCredentialSupport\\\" enabled=\\\"True\\\" />\"+\n\"<feature name=\\\"Citrix.DeliveryServices.ZonePreference\\\" enabled=\\\"True\\\" />\"+\n\"<feature name=\\\"Citrix.StoreFront.Authentication.Saml\\\" enabled=\\\"True\\\" />\"+\n\"<feature name=\\\"Citrix.StoreFront.AuthenticationToken.Jwt\\\" enabled=\\\"False\\\" />\"+\n\"<feature name=\\\"Citrix.StoreFront.Authentication.Cloud\\\" enabled=\\\"False\\\" />\"+\n\"<feature name=\\\"Citrix.StoreFront.XenMobile.SmartAccess\\\" enabled=\\\"True\\\" />\"+\n\"<feature name=\\\"Citrix.DeliveryServices.Authentication.SelfServiceAccountManagement\\\" enabled=\\\"True\\\" />\"+\n\"<feature name=\\\"Citrix.StoreFront.MultipleIISWebsites\\\" enabled=\\\"True\\\" />\"+\n\"<feature name=\\\"Citrix.DeliveryServices.HdxOverUdp\\\" enabled=\\\"True\\\" />\"+\n\"<feature name=\\\"Citrix.StoreFront.WebAndSaaSApps\\\" enabled=\\\"False\\\" />\"+\n\"<feature name=\\\"Citrix.DeliveryServices.Authentication.Explicit.ExplicitJson\\\" enabled=\\\"True\\\" />\"+\n\"<feature name=\\\"Citrix.StoreFront.DesktopICALaunch.Mapping\\\" enabled=\\\"True\\\" />\"+\n\"<feature name=\\\"Citrix.StoreFront.AppProtectionPolicy.Control\\\" enabled=\\\"True\\\" />\"+\n\"<feature name=\\\"StoreFrontCloudAdmin\\\" enabled=\\\"False\\\" />\"+\n\"<feature name=\\\"StoreFrontCloudDeployment\\\" enabled=\\\"False\\\" />\"+\n\"<feature name=\\\"StoreFrontCloudFeatureCanary\\\" enabled=\\\"False\\\" />\"+\n\"<feature name=\\\"StoreFrontCloudTestShard\\\" enabled=\\\"False\\\" />\"+\n\"<feature name=\\\"StoreFrontGWaaS_Product_RestrictPop\\\" enabled=\\\"False\\\" />\"+\n\"<feature name=\\\"StoreFrontMultiTenantBrokerService\\\" enabled=\\\"False\\\" />\"+\n\"<feature name=\\\"StoreFrontCloudSync_SkipConfigUpdates\\\" enabled=\\\"False\\\" />\"+\n\"<feature name=\\\"StoreFrontCloudSync_AlwaysUseServiceUrls\\\" enabled=\\\"True\\\" />\"+\n\"</featureToggles>\"+\"</clientSettings>\""

12.1:
"HTTP/1.1 200 OK\r\n" + 
"Cache-Control: no-cache, no-store, max-age=0\r\nConnection: close\r\nContent-Type: application/xml; charset=utf-8\r\nX-Citrix-Application: Receiver for Web\r\n\r\n" +

"<clientSettings xmlns='http://citrix.com/delivery-services/webAPI/2-6/clientConfig'>"+
"<session timeout=\"20\" userLanguages=\"en-GB,en;q=0.9,pt-PT;q=0.8,pt;q=0.7\" />"+
"<authManager getUsernameURL=\"Authentication/GetUserName\" logoffURL=\"Authentication/Logoff\" "+"changeCredentialsURL=\"ExplicitAuth/GetChangeCredentialForm\" loginFormTimeout=\"5\" webviewReturnURL=\"ExplicitAuth/Bounce\" webviewResumeURL=\"ExplicitAuth/ResumeForms\" allowSelfServiceAccountManagementURL=\"ExplicitAuth/AllowSelfServiceAccountManagement\" />"+
"<storeProxy keepAliveURL=\"Home/KeepAlive\">"+
"<resourcesProxy listURL=\"Resources/List\" resourceDetails=\"default\" />"+
"<sessionsProxy listAvailableURL=\"Sessions/ListAvailable\" disconnectURL=\"Sessions/Disconnect\" logoffURL=\"Sessions/Logoff\" />"+
"<clientAssistantProxy getDetectionTicketURL=\"ClientAssistant/GetDetectionTicket\" getDetectionStatusURL=\"ClientAssistant/GetDetectionStatus\" />"+
"</storeProxy>"+
"<pluginAssistant enabled=\"true\" upgradeAtLogin=\"false\" showAfterLogin=\"false\">"+
"<win32 path=\"clients/Windows/CitrixReceiver.exe\" version=\"14.9.4000.9\" />"+
"<macOS path=\"http://downloadplugins.citrix.com/Mac/CitrixReceiverWeb.dmg\" minimumSupportedOSVersion=\"10.6\" />"+
"<html5 enabled=\"Off\" platforms=\"Firefox;Chrome;Version/([6-9]|\\d\\d).*Safari;MSIE \\d\\d;Trident/([6-9]|\\d\\d)"+";Android;iPad;iPhone;iPod;\" launchURL=\"clients/HTML5Client/src/SessionWindow.html\" preferences=\"\" singleTabLaunch=\"false\" chromeAppOrigins=\"chrome-extension://haiffjcadagjlijoggckpgfnoeiflnem\" chromeAppPreferences=\"\" />"+
"<protocolHandler enabled=\"true\" platforms=\"(Macintosh|Windows NT).*((Firefox/((5[2-9]|"+"[6789][0-9])|\\d\\d\\d))|"+"(Chrome/((4[2-9]|[56789][0-9])|\\d\\d\\d)))\" skipDoubleHopCheckWhenDisabled=\"false\" />"+
"</pluginAssistant>"+
"<userInterface autoLaunchDesktop=\"true\" multiClickTimeout=\"3\" enableAppsFolderView=\"true\">"+
"<workspaceControl enabled=\"true\" autoReconnectAtLogon=\"true\" logoffAction=\"disconnect\" showReconnectButton=\"false\" showDisconnectButton=\"false\" />"+
"<receiverConfiguration enabled=\"true\" downloadURL=\"ServiceRecord/GetDocument/receiverconfig.cr\" />"+
"<uiViews showDesktopsView=\"true\" showAppsView=\"true\" defaultView=\"apps\" />"+
"<appShortcuts enabled=\"false\" allowSessionReconnect=\"false\" />"+
"</userInterface>"+
"<featureToggles>"+
"<feature name=\"Citrix.DeliveryServices.WingImpl.AlwaysOnTracing\" enabled=\"True\" />"+
"<feature name=\"Citrix.DeliveryServices.DazzleResources.Web.AlwaysOnTracing\" enabled=\"True\" />"+
"<feature name=\"Citrix.DeliveryServices.DazzleResourcesController.AnonymousPrelaunch\" enabled=\"True\" />"+
"<feature name=\"Citrix.StoreFront.Roaming.NetScalerConfiguration\" enabled=\"True\" />"+
"<feature name=\"Citrix.DeliveryServices.Admin.NetScalerImport\" enabled=\"True\" />"+
"<feature name=\"Citrix.DeliveryServices.WebUI.ClientDetection.IfRequiredByApps\" enabled=\"True\" />"+
"<feature name=\"Citrix.DeliveryServices.WebUI.WebviewCredentialSupport\" enabled=\"True\" />"+
"<feature name=\"Citrix.DeliveryServices.ZonePreference\" enabled=\"True\" />"+
"<feature name=\"Citrix.StoreFront.Authentication.Saml\" enabled=\"True\" />"+
"<feature name=\"Citrix.StoreFront.AuthenticationToken.Jwt\" enabled=\"False\" />"+
"<feature name=\"Citrix.StoreFront.Authentication.Cloud\" enabled=\"False\" />"+
"<feature name=\"Citrix.StoreFront.XenMobile.SmartAccess\" enabled=\"True\" />"+
"<feature name=\"Citrix.DeliveryServices.Authentication.SelfServiceAccountManagement\" enabled=\"True\" />"+
"<feature name=\"Citrix.StoreFront.MultipleIISWebsites\" enabled=\"True\" />"+
"<feature name=\"Citrix.DeliveryServices.HdxOverUdp\" enabled=\"True\" />"+
"<feature name=\"Citrix.StoreFront.WebAndSaaSApps\" enabled=\"False\" />"+
"<feature name=\"Citrix.DeliveryServices.Authentication.Explicit.ExplicitJson\" enabled=\"True\" />"+
"<feature name=\"StoreFrontCloudAdmin\" enabled=\"False\" />"+
"<feature name=\"StoreFrontCloudDeployment\" enabled=\"False\" />"+
"<feature name=\"StoreFrontGWaaS_Product_RestrictPop\" enabled=\"False\" />"+
"<feature name=\"StoreFrontMultiTenantBrokerService\" enabled=\"False\" />"+
"</featureToggles>"+
"</clientSettings>"