<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Need URL to open in Current window in ArcGIS Viewer for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/need-url-to-open-in-current-window/m-p/539253#M1468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Guys, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SUPER URGENT question! I have a project where the client would like the map to have a number of links at the top and these links would take the user to another site with another map. Now it's important that the current session closes. I am currently using the link available from the (title and Links) option in the viewer but clicking on these just opens a new window and leaves the current one open! Any ideas? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also found the code in the config/application.xml file which takes care of these links:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;HelpLinks&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;HelpLink&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Url&amp;gt;http://www.newurl.com&amp;lt;/Url&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DisplayText&amp;gt;newUrl&amp;lt;/DisplayText&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/HelpLink&amp;gt;
&amp;nbsp; &amp;lt;/HelpLinks&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I can modify that to make it target the same window it's in?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Keith&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Feb 2014 08:31:30 GMT</pubDate>
    <dc:creator>Keithzammit</dc:creator>
    <dc:date>2014-02-28T08:31:30Z</dc:date>
    <item>
      <title>Need URL to open in Current window</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/need-url-to-open-in-current-window/m-p/539253#M1468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Guys, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SUPER URGENT question! I have a project where the client would like the map to have a number of links at the top and these links would take the user to another site with another map. Now it's important that the current session closes. I am currently using the link available from the (title and Links) option in the viewer but clicking on these just opens a new window and leaves the current one open! Any ideas? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also found the code in the config/application.xml file which takes care of these links:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;HelpLinks&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;HelpLink&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Url&amp;gt;http://www.newurl.com&amp;lt;/Url&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DisplayText&amp;gt;newUrl&amp;lt;/DisplayText&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/HelpLink&amp;gt;
&amp;nbsp; &amp;lt;/HelpLinks&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I can modify that to make it target the same window it's in?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Keith&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 08:31:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/need-url-to-open-in-current-window/m-p/539253#M1468</guid>
      <dc:creator>Keithzammit</dc:creator>
      <dc:date>2014-02-28T08:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need URL to open in Current window</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/need-url-to-open-in-current-window/m-p/539254#M1469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can change this by modifying the map layout that you are using. You need to find the correct layout xaml by looking in the .../config/layouts folder. In your layout xaml there should be a section for the HelpLinks. The line you need to search for will be &amp;lt;HyperlinkButton NavigateUri="{Binding Url}" TargetName="_blank" Foreground="{StaticResource AccentTextColorBrush}" &amp;gt;. You need to change TargetName="_blank" to &lt;/SPAN&gt;&lt;STRONG&gt;TargetName="_self"&lt;/STRONG&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Each layout is dirrefernt so i can't tell you which line it will be in the xaml. if you can't find it just let me know which layout you are using and i will take a look at that specific layout.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 15:29:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/need-url-to-open-in-current-window/m-p/539254#M1469</guid>
      <dc:creator>BrianLeroux</dc:creator>
      <dc:date>2014-03-03T15:29:38Z</dc:date>
    </item>
  </channel>
</rss>

