File tree Expand file tree Collapse file tree 4 files changed +35
-3
lines changed
serialization/Templates/UrlMapper2/Redirect/Redirect Configuration Expand file tree Collapse file tree 4 files changed +35
-3
lines changed Original file line number Diff line number Diff line change 3030//
3131// You can specify all the values or you can default the Revision and Build Numbers
3232// by using the '*' as shown below:
33- [ assembly: AssemblyVersion ( "1.3.2 .0" ) ]
34- [ assembly: AssemblyFileVersion ( "1.3.2 .0" ) ]
33+ [ assembly: AssemblyVersion ( "1.3.3 .0" ) ]
34+ [ assembly: AssemblyFileVersion ( "1.3.3 .0" ) ]
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public IEnumerable<Redirect> SearchRedirects(RedirectSearchData redirectSearchDa
3939 using ( var searchContext = ContentSearchManager . GetIndex ( indexName ) . CreateSearchContext ( ) )
4040 {
4141 var queryable = this . GetSearchQuery ( searchContext , redirectSearchData ) ;
42- results = queryable . ToList ( ) . DistinctBy ( r => r . ItemId ) ? . ToList ( ) ;
42+ results = queryable . ToList ( ) . Where ( r => ! string . IsNullOrWhiteSpace ( r . SourceTerm ) && ! string . IsNullOrWhiteSpace ( r . TargetUrl ) ) . DistinctBy ( r => r . ItemId ) ? . ToList ( ) ;
4343 }
4444
4545 if ( results != null && results . Any ( ) )
Original file line number Diff line number Diff line change @@ -5,6 +5,22 @@ Template: "455a3e98-a627-4b40-8035-e683a0331ac7"
55Path : /sitecore/templates/Modules/UrlMapper2/Redirect/Redirect Configuration/Source Term
66DB : master
77SharedFields :
8+ - ID : " 21828437-ea4b-40a1-8c61-4ce60ea41db6"
9+ Hint : Validate Button
10+ Type : tree list
11+ Value : " {59D4EE10-627C-4FD3-A964-61A88B092CBC}"
12+ - ID : " 337e20e1-999a-4eea-85ad-b58a03ae75cc"
13+ Hint : Quick Action Bar
14+ Type : tree list
15+ Value : " {59D4EE10-627C-4FD3-A964-61A88B092CBC}"
16+ - ID : " 53c432c4-7122-4e2d-8296-db4184fd1735"
17+ Hint : Workflow
18+ Type : tree list
19+ Value : " {59D4EE10-627C-4FD3-A964-61A88B092CBC}"
20+ - ID : " 9c903e29-650d-4af2-b9bd-526d5c14a1a5"
21+ Hint : Validator Bar
22+ Type : tree list
23+ Value : " {59D4EE10-627C-4FD3-A964-61A88B092CBC}"
824- ID : " ab162cc0-dc80-4abf-8871-998ee5d7ba32"
925 Hint : Type
1026 Value : " Single-Line Text"
Original file line number Diff line number Diff line change @@ -5,6 +5,22 @@ Template: "455a3e98-a627-4b40-8035-e683a0331ac7"
55Path : /sitecore/templates/Modules/UrlMapper2/Redirect/Redirect Configuration/Target
66DB : master
77SharedFields :
8+ - ID : " 21828437-ea4b-40a1-8c61-4ce60ea41db6"
9+ Hint : Validate Button
10+ Type : tree list
11+ Value : " {59D4EE10-627C-4FD3-A964-61A88B092CBC}"
12+ - ID : " 337e20e1-999a-4eea-85ad-b58a03ae75cc"
13+ Hint : Quick Action Bar
14+ Type : tree list
15+ Value : " {59D4EE10-627C-4FD3-A964-61A88B092CBC}"
16+ - ID : " 53c432c4-7122-4e2d-8296-db4184fd1735"
17+ Hint : Workflow
18+ Type : tree list
19+ Value : " {59D4EE10-627C-4FD3-A964-61A88B092CBC}"
20+ - ID : " 9c903e29-650d-4af2-b9bd-526d5c14a1a5"
21+ Hint : Validator Bar
22+ Type : tree list
23+ Value : " {59D4EE10-627C-4FD3-A964-61A88B092CBC}"
824- ID : " ab162cc0-dc80-4abf-8871-998ee5d7ba32"
925 Hint : Type
1026 Value : General Link
You can’t perform that action at this time.
0 commit comments