You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ki...@apache.org on 2021/02/05 03:58:52 UTC
[incubator-dolphinscheduler] branch 1.3.5-prepare updated:
[cherry-pick-#4688][UI] Fixed a 404 error when the project name contains
"http" (#4689)
This is an automated email from the ASF dual-hosted git repository.
kirs pushed a commit to branch 1.3.5-prepare
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git
The following commit(s) were added to refs/heads/1.3.5-prepare by this push:
new 6440de7 [cherry-pick-#4688][UI] Fixed a 404 error when the project name contains "http" (#4689)
6440de7 is described below
commit 6440de74a460bafc660085ebfdcea9bc40fd5e45
Author: break60 <79...@qq.com>
AuthorDate: Fri Feb 5 11:58:42 2021 +0800
[cherry-pick-#4688][UI] Fixed a 404 error when the project name contains "http" (#4689)
---
dolphinscheduler-ui/src/js/module/io/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dolphinscheduler-ui/src/js/module/io/index.js b/dolphinscheduler-ui/src/js/module/io/index.js
index d1b6a1a..2d78948 100644
--- a/dolphinscheduler-ui/src/js/module/io/index.js
+++ b/dolphinscheduler-ui/src/js/module/io/index.js
@@ -22,7 +22,7 @@ const apiPrefix = '/dolphinscheduler'
const reSlashPrefix = /^\/+/
const resolveURL = (url) => {
- if (url.indexOf('http') !== -1) {
+ if (url.indexOf('http') === 0) {
return url
}
if (url.charAt(0) !== '/') {