[Fix-4640][UI] Fixed a 404 error when the project name contains "http" (#4688)

this closes #4640  #4672
This commit is contained in:
lisen 2021-02-05 11:33:00 +08:00 committed by GitHub
parent 9a3853424b
commit e3902bf340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) !== '/') {