mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-12 19:42:20 +00:00
avoid redundant redirection.
This commit is contained in:
1 parent
7ec3a26169
commit
6d3e4becef
1 file changed
+2
-1
@@ -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("/"))
|
||||
|
||||
Reference in new issue
Block a user