Skip to content

Commit

Permalink
Prevent strange basepaths being used with URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
daveshanley committed Jan 2, 2025
1 parent 686d9ec commit 0268ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion motor/rule_applicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func ApplyRulesToRuleSet(execution *RuleSetExecution) *RuleSetExecutionResult {
}

if execution.AllowLookup {
if indexConfig.BasePath == "" {
if indexConfig.BasePath == "" && indexConfig.BaseURL == nil {
indexConfig.BasePath = "."
docConfig.BasePath = "."
}
Expand Down

0 comments on commit 0268ef0

Please sign in to comment.