diff --git a/src/DocNet/Config.cs b/src/DocNet/Config.cs
index f67046f..8fcbcee 100644
--- a/src/DocNet/Config.cs
+++ b/src/DocNet/Config.cs
@@ -180,7 +180,10 @@ private void GenerateSearchPage(NavigationContext navigationContext)
searchSimpleElement.ExtraScriptProducerFunc = (e,c,n) => @"
";
- searchSimpleElement.GenerateOutput(this, activePath, navigationContext);
+
+ // Force custom navigation context because this should end up in the root
+ searchSimpleElement.GenerateOutput(this, activePath, new NavigationContext(PathSpecification.Full, UrlFormatting.None, 0, false));
+
activePath.Pop();
}