@@ -168,8 +168,7 @@ public ModelAndView createWorkflow(@Valid WorkflowForm workflowForm, BindingResu
168
168
*/
169
169
@ GetMapping (value ={"/workflows/{domain}.com/{owner}/{repoName}/tree/{branch}/**" ,
170
170
"/workflows/{domain}.com/{owner}/{repoName}/blob/{branch}/**" })
171
- public ModelAndView getWorkflow (@ Value ("${applicationURL}" ) String applicationURL ,
172
- @ PathVariable ("domain" ) String domain ,
171
+ public ModelAndView getWorkflow (@ PathVariable ("domain" ) String domain ,
173
172
@ PathVariable ("owner" ) String owner ,
174
173
@ PathVariable ("repoName" ) String repoName ,
175
174
@ PathVariable ("branch" ) String branch ,
@@ -183,8 +182,7 @@ public ModelAndView getWorkflow(@Value("${applicationURL}") String applicationUR
183
182
GitDetails gitDetails = getGitDetails (domain , owner , repoName , branch , path );
184
183
185
184
// Get workflow
186
- ModelAndView modelAndView = getWorkflow (gitDetails , redirectAttrs );
187
- return modelAndView .addObject ("appURL" , applicationURL );
185
+ return getWorkflow (gitDetails , redirectAttrs );
188
186
}
189
187
190
188
/**
@@ -199,8 +197,7 @@ public ModelAndView getWorkflowGeneric(@Value("${applicationURL}") String applic
199
197
RedirectAttributes redirectAttrs ) {
200
198
String path = (String ) request .getAttribute (HandlerMapping .PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE );
201
199
GitDetails gitDetails = getGitDetails (11 , path , branch );
202
- ModelAndView modelAndView = getWorkflow (gitDetails , redirectAttrs );
203
- return modelAndView .addObject ("appURL" , applicationURL );
200
+ return getWorkflow (gitDetails , redirectAttrs );
204
201
}
205
202
206
203
/**
0 commit comments