doInit : function(component, event, helper) { var params = new Array(); params.push(component.get('v.recordIdVar') + '=' + component.get('v.recordId')); params.push(component.get('v.otherParams')); component.set('v.queryString', params.join('&')) }, openPage : function(component, event, helper) { // Show spinner once button is pressed var spinner = component.find('spinner'); $A.util.removeClass(spinner, 'slds-hide'); // Build url for Visualforce page var vfURL = 'https://' + component.get("v.domain") + '--c.visualforce.com/apex/'; vfURL = vfURL + component.get("v.pageName") + '?'; vfURL = vfURL + component.get("v.queryString"); console.log("VF URL: ",vfURL);
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter