@@ -594,7 +594,7 @@ else if (!getContainer().hasPermission(getUser(), InsertPermission.class))
594594 tool .setLatest (true );
595595 SkylineToolsStoreManager .get ().insertTool (c , getUser (), tool );
596596
597- return HttpView .redirect (SkylineToolStoreUrls .getToolDetailsUrl (tool ). getLocalURIString () );
597+ return HttpView .redirect (SkylineToolStoreUrls .getToolDetailsUrl (tool ));
598598 }
599599 }
600600 else
@@ -868,7 +868,6 @@ public DeleteSupplementAction()
868868 @ Override
869869 public ModelAndView handleRequestInternal (HttpServletRequest httpServletRequest , HttpServletResponse httpServletResponse ) throws Exception
870870 {
871- final String sender = httpServletRequest .getParameter ("sender" );
872871 final int suppTarget = Integer .parseInt (httpServletRequest .getParameter ("supptarget" ));
873872
874873 final String suppFile = httpServletRequest .getParameter ("suppFile" );
@@ -890,8 +889,7 @@ public ModelAndView handleRequestInternal(HttpServletRequest httpServletRequest,
890889 else
891890 throw new Exception ();
892891
893- return HttpView .redirect ((sender != null ) ? sender :
894- SkylineToolStoreUrls .getToolDetailsUrl (tool ).getLocalURIString ());
892+ return HttpView .redirect (SkylineToolStoreUrls .getToolDetailsUrl (tool ));
895893 }
896894
897895 @ Override
@@ -1049,8 +1047,8 @@ public ModelAndView handleRequestInternal(HttpServletRequest httpServletRequest,
10491047 }
10501048 }
10511049
1052- return HttpView .redirect ((senderUrl != null ) ? senderUrl . getLocalURIString () :
1053- SkylineToolStoreUrls .getToolStoreHomeUrl (toolStoreContainer , getUser ()). getLocalURIString () );
1050+ return HttpView .redirect ((senderUrl != null ) ? senderUrl :
1051+ SkylineToolStoreUrls .getToolStoreHomeUrl (toolStoreContainer , getUser ()));
10541052 }
10551053
10561054 @ Override
@@ -1383,8 +1381,9 @@ public ModelAndView handleRequestInternal(HttpServletRequest httpServletRequest,
13831381
13841382 Container toolStoreContainer = tool != null ? tool .getContainerParent () : getContainer ();
13851383
1386- return HttpView .redirect ((sender != null ) ? sender :
1387- SkylineToolStoreUrls .getToolStoreHomeUrl (toolStoreContainer , getUser ()).getLocalURIString ());
1384+
1385+ return HttpView .redirect ((sender != null ) ? new ActionURL (sender ) :
1386+ SkylineToolStoreUrls .getToolStoreHomeUrl (toolStoreContainer , getUser ()));
13881387 }
13891388 else
13901389 {
@@ -1505,8 +1504,7 @@ else if (!lowerName.startsWith("tool-inf/") ||
15051504 else
15061505 tool .writeIconToFile (makeFile (tool .lookupContainer (), "icon.png" ), "png" );
15071506
1508- String sender = httpServletRequest .getParameter ("sender" );
1509- return HttpView .redirect ((sender != null ) ? sender : new ActionURL (BeginAction .class , getContainer ()).getLocalURIString ());
1507+ return HttpView .redirect (SkylineToolStoreUrls .getToolDetailsUrl (tool ));
15101508 }
15111509
15121510 @ Override
0 commit comments