File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
src/Umbraco.Web.UI/umbraco/developer/Packages Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 261
261
<cc1:Pane ID =" pane_optional" runat =" server" Visible =" false" />
262
262
<cc1:Pane ID =" pane_success" runat =" server" Text =" Package is installed" Visible =" false" >
263
263
<cc1:PropertyPanel runat =" server" >
264
-
265
- <script type =" text/javascript" >
266
- // UmbClientMgr.mainWindow().UmbClientMgr._packageInstalled();
267
- </script >
268
-
264
+
269
265
<p >
270
266
All items in the package has been installed</p >
271
267
<p >
290
286
291
287
// This is all a bit zany with double encoding because we have a URL in a hash (#) url part
292
288
// but it works and maintains query strings
293
-
289
+
294
290
var refreshQuery = decodeURIComponent (" <%=RefreshQueryString%>" );
295
291
var umbPath = " <%=GlobalSettings.Path%>" ;
296
292
setTimeout (function () {
297
293
298
294
var mainWindow = UmbClientMgr .mainWindow ();
299
295
300
- var refreshUrl = mainWindow .location .href +
301
- encodeURIComponent (encodeURIComponent (" ?" + refreshQuery));
302
-
296
+ var baseUrl = mainWindow .location .href .substr (0 , mainWindow .location .href .indexOf (" #/developer/framed/" ));
297
+ var framedUrl = baseUrl + " #/developer/framed/" ;
298
+ var refreshUrl = framedUrl + encodeURIComponent (encodeURIComponent (umbPath + " /developer/packages/installer.aspx?" + refreshQuery));
299
+
303
300
var redirectUrl = umbPath + " /ClientRedirect.aspx?redirectUrl=" + refreshUrl;
304
301
305
302
mainWindow .location .href = redirectUrl;
You can’t perform that action at this time.
0 commit comments