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

This commit is contained in:
刘祥超
2024-01-11 15:37:56 +08:00
parent a7dd101dbf
commit cc632d557b

View File

@@ -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 = "/"
} }