mirror of
https://github.com/kovetskiy/mark.git
synced 2025-08-02 23:57:39 +08:00
fix: when using confluence cloud (with prefix) the /wiki keeps getting removed
This commit is contained in:
parent
bf542ab684
commit
f32dbbc04d
@ -61,14 +61,14 @@ func GetCredentials(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if url.Host == "" {
|
if url.Host == "" && baseURL == "" {
|
||||||
if baseURL == "" {
|
|
||||||
return nil, errors.New(
|
return nil, errors.New(
|
||||||
"confluence base URL should be specified using -l " +
|
"confluence base URL should be specified using -l " +
|
||||||
"flag or be stored in configuration file",
|
"flag or be stored in configuration file",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
|
if baseURL == "" {
|
||||||
baseURL = url.Scheme + "://" + url.Host
|
baseURL = url.Scheme + "://" + url.Host
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user