From eabba0aa02355d75acce1d7a5195103f26c68429 Mon Sep 17 00:00:00 2001 From: Andrzej Ratajczak Date: Fri, 26 Jun 2020 00:29:44 +0200 Subject: Fix childrenless directories --- plugins/base/src/main/kotlin/resolvers/local/DefaultLocationProvider.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/base/src/main/kotlin/resolvers/local/DefaultLocationProvider.kt b/plugins/base/src/main/kotlin/resolvers/local/DefaultLocationProvider.kt index e48aa926..34b570a9 100644 --- a/plugins/base/src/main/kotlin/resolvers/local/DefaultLocationProvider.kt +++ b/plugins/base/src/main/kotlin/resolvers/local/DefaultLocationProvider.kt @@ -56,7 +56,7 @@ open class DefaultLocationProvider( ) val contextNode = - if (context?.children?.isEmpty() == true && context.parent() != null) context.parent() else context + if (context !is ClasslikePageNode && context?.children?.isEmpty() == true && context.parent() != null) context.parent() else context val nodePath = pathFor(node) val contextPath = contextNode?.let { pathFor(it) }.orEmpty() -- cgit