summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gopher/gophermap/extended.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/gopher/gophermap/extended.go b/gopher/gophermap/extended.go
index a0360fc..7058c45 100644
--- a/gopher/gophermap/extended.go
+++ b/gopher/gophermap/extended.go
@@ -212,13 +212,12 @@ func (edoc ExtendedMapDocument) Compatible(cwd string, settings FileSystemSettin
case VHostListType:
return nil, "", errors.New("Virtual host listings '%' are not supported")
case InclusionType:
- location := filepath.Join(cwd, item.Selector)
- subEdoc, err := openExtended(location, edoc.Location)
+ subEdoc, err := openExtended(item.Selector, edoc.Location)
if err != nil {
return nil, "", err
}
- lines, _, err := subEdoc.Compatible(filepath.Dir(location), settings)
+ lines, _, err := subEdoc.Compatible(filepath.Dir(item.Selector), settings)
if err != nil {
return nil, "", err
}