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