File tree Expand file tree Collapse file tree 3 files changed +2
-10
lines changed
Elastic.Documentation.Navigation/Isolated
tests/Navigation.Tests/Isolation Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -109,14 +109,7 @@ public DocumentationSetNavigation(
109109 public Uri Identifier { get ; }
110110
111111 /// <inheritdoc />
112- public string Url
113- {
114- get
115- {
116- var rootUrl = HomeProvider . PathPrefix . TrimEnd ( '/' ) ;
117- return string . IsNullOrEmpty ( rootUrl ) ? "/" : $ "{ rootUrl } /";
118- }
119- }
112+ public string Url => Index . Url ;
120113
121114 /// <inheritdoc />
122115 public string NavigationTitle => Index . NavigationTitle ;
Original file line number Diff line number Diff line change 55using System . Collections . Concurrent ;
66using System . Collections . Frozen ;
77using System . IO . Abstractions ;
8- using System . Net . Mime ;
98using System . Runtime . CompilerServices ;
109using System . Runtime . InteropServices ;
1110using Elastic . Documentation ;
Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ public void UrlRootChangesForTableOfContentsNavigation()
281281 navigation . HomeProvider = new NavigationHomeProvider ( "/v2" , navigation . NavigationRoot ) ;
282282
283283 // Both TOC and file URLs should update
284- navigation . Url . Should ( ) . Be ( "/v2/" ) ;
284+ navigation . Url . Should ( ) . Be ( "/v2/guides/api/reference/ " ) ;
285285 toc . Url . Should ( ) . Be ( "/v2/guides/api/reference/" ) ;
286286 file . Url . Should ( ) . Be ( "/v2/guides/api/reference/" ) ;
287287 }
You can’t perform that action at this time.
0 commit comments