Skip to content

Commit 6499058

Browse files
authored
Merge pull request #13 from jarpsimoes/feature/fix-folder-path
FIX: root path configuration
2 parents 4806b04 + abce9c2 commit 6499058

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)