book
Article ID: CTX322543
calendar_today
Updated On:
Description
To redirect a custom URL (jnlp) using host to client redirection
Instructions
VDA side:Will need to be done on the master image and the catalog updated so they persist.If either of the below steps is missing you will see a prompt from within the VDA to select the application from a list
- CLASSES Root Key (this will tell us what application to use if we attempt to launch a file with a jnlpmime type):
Additional information on these keys and their function:https://msdn.microsoft.com/en-us/library/windows/desktop/ms724475(v=vs.85).aspx Export the http key found in classes root
Modify the export key using notepadI simply replaced all instances of HTTP with jnlp (or whichever extension you would like to use): Here is the key if you want to test , just save this as a .reg file on the VDA and double click to import.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\jnlp]
"Source Filter"="{E436EBB6-524F-11CE-9F53-0020AF0BA770}"
"URL Protocol"=""
@="URL:HyperText Transfer Protocol"
"AppUserModelID"="Microsoft.InternetExplorer.Default"
"EditFlags"=dword:00200002
"FriendlyTypeName"="@C:\\Windows\\System32\\ieframe.dll,-903"
[HKEY_CLASSES_ROOT\jnlp\DefaultIcon]
@="C:\\Windows\\System32\\url.dll,0"
[HKEY_CLASSES_ROOT\jnlp\Extensions]
".ASF"="{187463A0-5BB7-11D3-ACBE-0080C75E246E}"
".WMA"="{187463A0-5BB7-11D3-ACBE-0080C75E246E}"
".WMV"="{187463A0-5BB7-11D3-ACBE-0080C75E246E}"
".WM"="{187463A0-5BB7-11D3-ACBE-0080C75E246E}"
[HKEY_CLASSES_ROOT\jnlp\shell]
[HKEY_CLASSES_ROOT\jnlp\shell\open]
"DontReturnProcessHandle"=""
[HKEY_CLASSES_ROOT\jnlp\shell\open\command]
@="\"C:\\Program Files (x86)\\Citrix\\system32\\iexplore.exe\" \"%1\""
"DelegateExecute"="{17FE9752-0B5A-4665-84CD-569794602F5C}"
[HKEY_CLASSES_ROOT\jnlp\shell\open\command_backup]
@="\"c:\\program files\\internet explorer\\iexplore.exe\" %1"
- URLAssociations Key:
ServerFTAdefaultPolicy.xml COPY
-- xml file start --
<?xml version="1.0" encoding="UTF-8"?>
<DefaultAssociations>
<Association Identifier="http" ProgId="ServerFTAHTML" ApplicationName="ServerFTA" />
<Association Identifier="https" ProgId="ServerFTAHTML" ApplicationName="ServerFTA" />
<Association Identifier="jnlp" ProgId="ServerFTAHTML" ApplicationName="ServerFTA" />
</DefaultAssociations>
-- xml file end --
From the current Group Policy Management Console, navigate to: Computer configuration > Administrative Templates > Windows Components > File Explorer > Set a default associations configuration file, and provide the ServerFTAdefaultPolicy.xml file you created.
The docs include no reference to adding jnlpas an additional Protocol type so you can do one of 2 things.
-
Add it manually as I have done above
Or
-
Manually add the URLAssociation for jnlp (just substitute your custom URL for jnlp in the below screenshot)
Client:
Apply the client side policy including the jnlp entry.https://support.citrix.com/article/CTX140962 Computer Configuration > Administrative Templates > Classic Administrative Templates (ADM) > Citrix Components > Citrix Receiver , edit the SFTA Extra URL protocols setting for the protocols for which you want to enable redirection. Use the following format and separate protocols by a semicolon (;):protocol1://;protocol2://
Environment
Caution! Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.
Issue/Introduction
How to configure custom URL redirection