File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -669,8 +669,15 @@ func WikiRaw(ctx *context.Context) {
669669 }
670670
671671 if entry == nil {
672- // Try to find a wiki page with that name
673- providedGitPath = strings .TrimSuffix (providedGitPath , ".md" )
672+ // Try to find a wiki page with that name (check both .md and .org)
673+ providedGitPath := strings .TrimSuffix (providedGitPath , ".md" )
674+ // Try .org version
675+ orgPath := providedGitPath + ".org"
676+ entry , err = findEntryForFile (commit , orgPath )
677+ if err != nil && ! git .IsErrNotExist (err ) {
678+ ctx .ServerError ("findFile" , err )
679+ return
680+ }
674681 entry , err = findEntryForFile (commit , providedGitPath )
675682 if err != nil && ! git .IsErrNotExist (err ) {
676683 ctx .ServerError ("findFile" , err )
You can’t perform that action at this time.
0 commit comments