diff --git a/motor/rule_applicator.go b/motor/rule_applicator.go index 50f3d073..10dddda1 100644 --- a/motor/rule_applicator.go +++ b/motor/rule_applicator.go @@ -154,10 +154,12 @@ func ApplyRulesToRuleSet(execution *RuleSetExecution) *RuleSetExecutionResult { } if execution.AllowLookup { - if indexConfig.BasePath != "" { - indexConfig.AllowFileLookup = true - indexConfigUnresolved.AllowFileLookup = true + if indexConfig.BasePath == "" { + indexConfig.BasePath = "." + docConfig.BasePath = "." } + indexConfig.AllowFileLookup = true + indexConfigUnresolved.AllowFileLookup = true indexConfig.AllowRemoteLookup = true indexConfigUnresolved.AllowRemoteLookup = true docConfig.AllowRemoteReferences = true