fix: when using confluence cloud (with prefix) the /wiki keeps getting removed

This commit is contained in:
Jinming Wu, Patrick 2025-06-03 16:54:15 +08:00 committed by Manuel Rüger
parent bf542ab684
commit f32dbbc04d

View File

@ -61,14 +61,14 @@ func GetCredentials(
)
}
if url.Host == "" {
if baseURL == "" {
if url.Host == "" && baseURL == "" {
return nil, errors.New(
"confluence base URL should be specified using -l " +
"flag or be stored in configuration file",
)
}
} else {
if baseURL == "" {
baseURL = url.Scheme + "://" + url.Host
}