mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-01 03:37:46 +08:00
[Fix-4640][UI] Fixed a 404 error when the project name contains "http" (#4688)
this closes #4640 #4672
This commit is contained in:
parent
9a3853424b
commit
e3902bf340
@ -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) !== '/') {
|
||||
|
Loading…
Reference in New Issue
Block a user