Showing results for 
Search instead for 
Did you mean: 
Nintex Newbie

redirectUrl parameter in lightning

Working on a mass button in lightning and using the redirectUrl parameter following the guidelines here.


It seems that we can get the user back to our parent record (instead of the deafult jobqueuestatus page) where the list button is pushed but it seems to load our new page in CLASSIC! So we have a framed out classic page layout within the lightning experience.


Is this expected behaviour?


here is code snippet

<apex:page standardController="Enrollment__c" recordSetVar="units">
<script src="/soap/ajax/26.0/connection.js"> </script>
<script src="/support/console/26.0/integration.js"> </script>

<apex:dataTable value="{!selected}" var="un">
    <apex:column >
        <apex:outputLabel styleClass="ids">{!un.Id}</apex:outputLabel>
.ids{visibility : hidden}

<script type="text/javascript">
    document.addEventListener("DOMContentLoaded", function(event) { 
        var elems = document.body.getElementsByClassName("ids");
        var ids = new Array();

        for (var i = elems.length - 1; i >= 0; i--) {
            ids[i] = elems[i].innerHTML;    
        if (!ids || ids.length < 1)
            alert('Please select at least one record.');
            //var instanceName = window.location.hostname;
            //var newLocation = '/apex/loop__jobqueuestatus';
            var newLocation = '/{!Id}';
            var redirectUrl = '/apex/loop__masslooplus?';
            redirectUrl += '&recordIds='+ids.join(',');
            redirectUrl += '&sessionId={!$Api.Session_ID}';
            redirectUrl += '&retURL='+newLocation;
            if (sforce && && {
            } else {
                window.location.href = redirectUrl;


Labels: (1)
0 Kudos