Skip to content

Commit f90a5b9

Browse files
author
Ed Costello
committed
DOCS-878 fix nav to parents (choose closest parent not "highest")
1 parent 53933b1 commit f90a5b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

themes/mongodb/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
<li id="btnvpr"><a href="{{ prev.link|e }}" title="Previous Section: {{ prev.title|striptags|e }}">&lt; &nbsp; {{ prev.title|striptags|e }}</a></li>
104104
{%- endif %}
105105
{%- if parents %}
106-
<li id="btnvup"><a href="{{ parents[0].link|e }}" title="Parent Section: {{ parents[0].title|striptags|e }}" >&#47;&#92;&nbsp; {{ parents[0].title|striptags|e }}</a></li>
106+
<li id="btnvup"><a href="{{ parents[-1].link|e }}" title="Parent Section: {{ parents[-1].title|striptags|e }}" >&#47;&#92;&nbsp; {{ parents[-1].title|striptags|e }}</a></li>
107107
{%- endif %}
108108
{%- if next %}
109109
<li id="btnvnx"><a href="{{ next.link|e }}" title="Next Section: {{ next.title|striptags|e }}">{{ next.title|striptags|e }} &nbsp;&gt;</a></li>

0 commit comments

Comments
 (0)