We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b830c4e commit db5baceCopy full SHA for db5bace
context_fs_go1.16.go
@@ -33,7 +33,7 @@ func fsFile(c Context, file string, filesystem fs.FS) error {
33
34
fi, _ := f.Stat()
35
if fi.IsDir() {
36
- file = filepath.Join(file, indexPage)
+ file = filepath.ToSlash(filepath.Join(file, indexPage)) // ToSlash is necessary for Windows
37
f, err = filesystem.Open(file)
38
if err != nil {
39
return ErrNotFound
0 commit comments