Default or embed?
TARGIT Anywhere has two different modes, "default" and "embed".
As the name implies, default is the standard behavior.
With default you see the toolbar in the top of your browser, that allow the user to navigate into Shared folders and other more advanced features.
Default
A standard URL could look like this:
https://anywheredemodk2019.targit.com/anywhere/#vfs://Global/TARGIT%20Demo/Demo%20Portal.xview
Embed
If you want to simplify the use of TARGIT or embed TARGIT into other applications, you might want to hide the toolbar.
You can hide the toolbar by adding "embed" to the URL:
https://anywheredemodk2019.targit.com/anywhere/embed#vfs://Global/TARGIT%20Demo/Demo%20Portal.xview
Enforce embed through IIS configuration
If you want to enforce embed to your TARGIT Anywhere deployment, you can use the "IIS URL Rewrite 2.1" module for Internet Information Server (IIS).
The module can be downloaded from here:
Adding rules to web.config
To apply the rules, you need to edit web.config for TARGIT Anywhere. The "web.config" file is typically found here:
C:\inetpub\wwwroot\Anywhere
Under the existing tag <system.webServer> you add the rewrite part as seen here:
<rewrite>
<rules>
<rule name="embedRedirect" stopProcessing="true">
<match url="^$" />
<conditions>
<add input="{REQUEST_URI}" pattern="^/$" />
</conditions>
<action type="Redirect" url="/embed" />
</rule>
</rules>
</rewrite>
TARGIT version before TARGIT 2023:
<rewrite>
<rules>
<rule name="default" stopProcessing="true">
<match url="default$" />
<action type="Redirect" url="embed" />
</rule>
<rule name="anywhere/" patternSyntax="ECMAScript" stopProcessing="true">
<match url="^/?$" />
<action type="Redirect" url="embed" />
</rule>
</rules>
</rewrite>
If you don't have <system.webServer> in you web.config file, you simple add <system.webServer> inside the <configuration> tag.
Note: Web.config is overwritten with every upgrade of TARGIT Anywhere - so you'll need to insert the <rewrite> part after upgrading TARGIT Anywhere.
Examples:
You can see the result of an enforced replacement of embed from these links:
https://solutions.targit.com/anywhere
https://solutions.targit.com/anywhere/default
Comments
Please sign in to leave a comment.