File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/main/java/eu/openanalytics/shinyproxy/controllers Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -69,14 +69,19 @@ public void init() {
69
69
landingPage = environment .getProperty ("proxy.landing-page" , "/" );
70
70
}
71
71
72
- @ RequestMapping ("/" )
72
+ @ RequestMapping (path ={ "" , "/" } )
73
73
private Object index (ModelMap map , HttpServletRequest request ) {
74
74
if (!landingPage .equals (PROXY_LANDING_PAGE_INDEX_OPTION )
75
75
&& !landingPage .equals (PROXY_LANDING_PAGE_SINGLE_APP_OPTION )
76
76
&& !landingPage .equals (PROXY_LANDING_PAGE_FIRST_APP_OPTION )) {
77
77
return new RedirectView (landingPage , true );
78
78
}
79
79
80
+ if (request .getServletPath ().equals ("" )) {
81
+ // ensure URL has trailing slash
82
+ return new RedirectView ("/" , true );
83
+ }
84
+
80
85
List <ProxySpec > apps = proxyService .getUserSpecs ();
81
86
82
87
// If set to `FirstApp`, redirect to the first app available to the logged-in user
You can’t perform that action at this time.
0 commit comments