Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

Commented Issue: Extend SPRedirectWithID with Query String Parameters [10030]

$
0
0
If I use redirectUrl: “EditForm.aspx” in SharePoint 2010 in a Dialog, the dialog parameter ?IsDlg=1 gets lost. If I use redirectUrl: “EditForm.aspx?IsDlg=1” the final URL is in an invalid format like EditForm.aspx?IsDlg=1?ID=169.
Comments: In 2013.01ALPHA6, changed the creation of the redirectUrl so that it adds an ampersand instead of a question mark if there's already a question mark. i.e., append to the existing query string if there is one. location.href = thisRedirectUrl + thisRedirectUrl.indexOf("?") > 0 ? "&" : "?" + opt.qsParamName + "=" + lastID + ((typeof queryStringVals.RealSource === "string") ? ("&Source=" + queryStringVals.RealSource) : "");

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>