Skip to content

Commit abce9c2

Browse files
committed
FIX: root path configuration
1 parent 4806b04 commit abce9c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/handlers/default_handlers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ func StaticContentHandler(w http.ResponseWriter, r *http.Request) {
2828
basePath := utils.BuildBranchPath(repoConfig.GetTargetFolder(), branch)
2929

3030
if repoConfig.GetRootFolder() != "" {
31-
basePath = fmt.Sprintf("%s/%s", basePath, repoConfig.GetRootFolder())
31+
32+
basePath = fmt.Sprintf("%s/%s", repoConfig.GetRootFolder(), basePath)
3233

3334
if strings.Contains(basePath, "//") {
3435
basePath = strings.ReplaceAll(basePath, "//", "/")

0 commit comments

Comments
 (0)