function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mustafa JhabuawalaMustafa Jhabuawala 

How to pass data through URL parameter to a Lightning Page using navigateToURL ?

I am trying to call a Lightning Page from a quick action. Below are the details - 
  1. Created a quick action and refered a component
  2. #1 component contains a button click of which navigateURL is called
Component Code 
<aura:component implements="force:lightningQuickActionWithoutHeader,force:hasRecordId,force:appHostable" >
    <header class="slds-modal__header">
        <h2 id="modal-heading-01" class="slds-text-heading_medium slds-hyphenate">Heading</h2>
    </header>
    <div class="slds-modal__content slds-p-around_medium" id="modal-content-id-1">
        <p>You will navigated to XYZ Page. Do you want to proceed ? </p>
    </div>
    <footer class="slds-text-align_center">
        <lightning:button onclick="{!c.proceed}" class="slds-button_brand" >Yes</lightning:button>&nbsp;
        <lightning:button onclick="{!c.cancel}" class="slds-button_brand" >No</lightning:button>
    </footer>
</aura:component>
Controller.js
({
    proceed : function (component, event, helper) {
        var urlEvent = $A.get("e.force:navigateToURL");
        urlEvent.setParams({
            "url": 'https://devjuf--mjteam.lightning.force.com/one/one.app#/n/Some_Page?CampaignID=701W0000000WrbCIAS'
        });
        urlEvent.fire();
    },
    cancel : function(){
        $A.get("e.force:closeQuickAction").fire();
    }
})
Note  - For testing purpose I have hardocded the URL and ID.

The problem is when I try to pass the parameters through URL, page is getting re-directed to the correct tab but it doesn't show the label of tab.

User-added image

If I am not passing any parameter in that case it works fine. Check the screen shot'

User-added image

Any help on this would be really appreciated.

--
Regards
Mustafa