@@ -9,6 +9,7 @@ import Controls_Navigation = require("VSS/Controls/Navigation");
9
9
import Controls_StatusIndicator = require( "VSS/Controls/StatusIndicator" ) ;
10
10
import Q = require( "q" ) ;
11
11
import Service = require( "VSS/Service" ) ;
12
+ import Services_Navigation = require( "VSS/SDK/Services/Navigation" ) ;
12
13
import Tfs_Core_WebApi = require( "TFS/Core/RestClient" ) ;
13
14
import TFS_Core_Contracts = require( "TFS/Core/Contracts" ) ;
14
15
import Utils_Core = require( "VSS/Utils/Core" ) ;
@@ -688,9 +689,19 @@ export class SummaryView extends Controls.BaseControl {
688
689
var $sectionContainer = newElement ( "div" , "category" ) . appendTo ( this . getElement ( ) ) ;
689
690
var summaryTitle = source . name ;
690
691
source . getTitleUrl ( VSS . getWebContext ( ) ) . then ( ( titleUrl ) => {
691
- if ( titleUrl ) {
692
- $ ( "<h3>" ) . html ( "<a target='_blank' href='" + titleUrl + "'>" + summaryTitle + "</a>" ) . appendTo ( $sectionContainer ) ;
693
- }
692
+ if ( titleUrl ) {
693
+ var $link = newElement ( "a" , "" , summaryTitle ) ;
694
+ $link . on ( 'click' , ( eventObject ) => {
695
+ VSS . getService ( VSS . ServiceIds . Navigation ) . then ( ( navigationService : Services_Navigation . HostNavigationService ) => {
696
+ // Get current hash value from host url
697
+ navigationService . openNewWindow ( titleUrl , "" ) ;
698
+ } ) ;
699
+ } ) ;
700
+
701
+ var $title = $ ( "<h3>" ) ;
702
+ $link . appendTo ( $title ) ;
703
+ $title . appendTo ( $sectionContainer ) ;
704
+ }
694
705
else {
695
706
newElement ( "h3" , "" , summaryTitle ) . appendTo ( $sectionContainer ) ;
696
707
}
0 commit comments