This is an automated email from the ASF dual-hosted git repository.

kirs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new e3902bf  [Fix-4640][UI] Fixed a 404 error when the project name 
contains "http" (#4688)
e3902bf is described below

commit e3902bf340c23a1dea4065b832dee8ad99244307
Author: lisen <[email protected]>
AuthorDate: Fri Feb 5 11:33:00 2021 +0800

    [Fix-4640][UI] Fixed a 404 error when the project name contains "http" 
(#4688)
    
    this closes #4640  #4672
---
 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) !== '/') {

Reply via email to