Skip to main content
added 181 characters in body
Source Link
Robert Lindgren
  • 24.5k
  • 12
  • 53
  • 79

Would this not work? Using the fact that Layouts is shared through the fram

targetUrl = '/_layouts/MyProject/AppPage.aspx';aspx' + "?Location=" + window.location.href;

or you could try:

targetUrl = SP.Utilities.Utility.getLayoutsPageUrl('MyProject/AppPage.aspx' + "?Location=" + window.location.href)

Would this not work? Using the fact that Layouts is shared through the fram

targetUrl = '/_layouts/MyProject/AppPage.aspx';

Would this not work? Using the fact that Layouts is shared through the fram

targetUrl = '/_layouts/MyProject/AppPage.aspx' + "?Location=" + window.location.href;

or you could try:

targetUrl = SP.Utilities.Utility.getLayoutsPageUrl('MyProject/AppPage.aspx' + "?Location=" + window.location.href)
Source Link
Robert Lindgren
  • 24.5k
  • 12
  • 53
  • 79

Would this not work? Using the fact that Layouts is shared through the fram

targetUrl = '/_layouts/MyProject/AppPage.aspx';