提交 6d3e4bec 编写于 作者: S Seiji Sogabe

avoid redundant redirection.

上级 7ec3a261
......@@ -1096,7 +1096,8 @@ public class Functions {
public static String getActionUrl(String itUrl,Action action) {
String urlName = action.getUrlName();
if(urlName==null) return null; // to avoid NPE and fail to render the whole page
if (!urlName.endsWith("/"))
urlName += '/';
if(SCHEME.matcher(urlName).matches())
return urlName; // absolute URL
if(urlName.startsWith("/"))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册