Skip to content

Commit b64dac8

Browse files
authored
Fix logic to get the next navigation item (#1587)
1 parent fda41e3 commit b64dac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elastic.Markdown/IO/DocumentationSet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public interface IPositionalNavigation
5959
do
6060
{
6161
var next = NavigationIndexedByOrder.GetValueOrDefault(index + 1);
62-
if (next is not null && !next.Hidden)
62+
if (next is not null && !next.Hidden && next.Url != currentNavigation.Url)
6363
return next;
6464
index++;
6565
} while (index <= NavigationIndexedByOrder.Count - 1);

0 commit comments

Comments
 (0)