I'm working on a Lightning component that includes a button, whose purpose is to load a Visualforce page rendering a PDF cover sheet. I'd like to use the most current supported functionality, so I'm using <lightning:navigation> to manage URL generation.

<lightning:navigation> is documented to support seven pageReference types, one of which is "Navigation Item Page".

This includes Visualforce pages which have custom tabs assigned to them - the tab's API name can be used as the target API name of the page reference. Using the Visualforce page's own API name does not work.

My controller does this:

    let pageReference = {
        type: 'standard__navItemPage',
        attributes: {
            apiName: 'Cover_Sheet'
        state: {
            caseNumber: component.get('v.caseRecord.CaseNumber'),
            // ... other parameters ...

        .then($A.getCallback(function(url) {
        }), $A.getCallback(function(error) {
            helper.showToast('Unable to open cover sheet.', error);

The URL that's generated looks reasonable:


although the /n/ format appears to be the new standard for targeting a named tab.

When I get into Visualforce, I do


and I don't find any of the parameters I wanted to set represented there:

11:36:56:051 USER_DEBUG [8]|DEBUG|{clc=1, isdtp=p1, ltn_app_id=06mC00000018GYXIA2, nonce=XXXXXXX, sfdc.tabName=01rW000000016SV, sfdcIFrameHost=web, sfdcIFrameOrigin=XXXXXX, tour=, vfRetURLInSFX=/home/home.jsp}

Being in a console or standard app doesn't make a difference.

Edit: Additionally, I tried prefixing the entries within the state key with c__, as with Lightning component attributes; this had no effect.

Is it possible to use <lightning:navigation> to target a Visualforce page while providing parameters in the URL, or are we stuck using other techniques to load the page?

  • Going through the documentation for pageReference types, it is not clear if state can be actually used with all the different types as it only finds its references in some of those. That possibly could be a pointer state does not have any impact on other types. That's just a guess.
    – Jayant Das
    Commented Feb 15, 2019 at 17:18

1 Answer 1


Okay, there is a limitation in VF Tabs.

You cannot pass params in VF tabs let it be classic or even lightning.

On top of my head, it does not make sense to pass URL params to tabs. Tabs should be consistent irrespective of URL params.

As lightning:navigation use pageReference and pagereference does not support VF page, the option you have is to use standard__webPage provide your VF page with url params.

    handleClick : function(component, event, helper) {
        let pageReference = {
            type: 'standard__webPage',
            attributes: {
                url: '/apex/MyBlobVFPage?caseNumber=JAR'  

        var navService = component.find("navService");
            .then($A.getCallback(function(url) {

            }), $A.getCallback(function(error) {

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .