自定义页面跳转支持使用变量

This commit is contained in:
GoEdgeLab
2024-01-11 15:37:56 +08:00
parent 38c52823db
commit 868b3f188a

View File

@@ -151,7 +151,7 @@ func (this *HTTPRequest) doPageLookup(pages []*serverconfigs.HTTPPageConfig, sta
}
return true
} else if page.BodyType == serverconfigs.HTTPPageBodyTypeRedirectURL {
var newURL = page.URL
var newURL = this.Format(page.URL)
if len(newURL) == 0 {
newURL = "/"
}