mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-11 22:00:25 +08:00
自定义页面跳转支持使用变量
This commit is contained in:
@@ -151,7 +151,7 @@ func (this *HTTPRequest) doPageLookup(pages []*serverconfigs.HTTPPageConfig, sta
|
|||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
} else if page.BodyType == serverconfigs.HTTPPageBodyTypeRedirectURL {
|
} else if page.BodyType == serverconfigs.HTTPPageBodyTypeRedirectURL {
|
||||||
var newURL = page.URL
|
var newURL = this.Format(page.URL)
|
||||||
if len(newURL) == 0 {
|
if len(newURL) == 0 {
|
||||||
newURL = "/"
|
newURL = "/"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user