#5061 fix-5060

Merged
zouap merged 2 commits from fix-4948 into V20240109 4 months ago
  1. +3
    -0
      modules/notebook/contentManager.go
  2. +0
    -3
      services/cloudbrain/cloudbrainTask/notebook.go

+ 3
- 0
modules/notebook/contentManager.go View File

@@ -185,6 +185,9 @@ func getJupyterBaseUrl(url string) string {
if strings.HasSuffix(url, "lab") {
baseUrl = url[0 : jupyterUrlLength-len(path.Base(url))]
}
if !strings.HasSuffix(baseUrl, "/") {
baseUrl = baseUrl + "/"
}

return baseUrl
}


+ 0
- 3
services/cloudbrain/cloudbrainTask/notebook.go View File

@@ -503,9 +503,6 @@ func getBaseUrlAndToken(task *models.Cloudbrain) (string, string, error) {
token = result.Token

}
if !strings.HasSuffix(debugBaseUrl, "/") {
debugBaseUrl = debugBaseUrl + "/"
}
return debugBaseUrl, token, nil
}



Loading…
Cancel
Save