avoid redundant redirection.

This commit is contained in:
Seiji Sogabe committed 2011-03-12 18:00:27 +09:00
1 parent 7ec3a26169
commit 6d3e4becef
1 file changed
+2 -1
+2 -1
View File
@@ -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("/"))