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
rashmi budakoti 9rashmi budakoti 9 

How can i pass custom parameter in community login url

Hi All,

We have set up salesforce as an identity provider for third party website and mobile app. Now we want to identity whether the login request is coming from mobile app or website. In order to achieve this, website is sending us a parameter called channel=web in sitelogin url but that url is getting redirected to SiteLogin?startURL=%2Fendusers%2Fsetup%2Fsecur%2FRemoteAccessAuthorizationPage.apexp%3Fsource=.

Is there any way by which we can have channel=web parameter in above url?

Thanks,
Rashmi Budakoti
Deepali KulshresthaDeepali Kulshrestha
Hi Rashmi,
Please go through with below code, it may be helpful to you.

<a href="{!'/s/profile/'+usr.usr.Id}">

The other ways to navigate is to use events available for navigation

<aura:attribute name="supportURL" type="string" default="your_URL"/>
<ui:button aura:id="button" buttonTitle="Contact Support" label="Contact Support" press="{!c.navigate}" class="uiButton forceCommunityAskCommunity"/>

({
navigate : function(component, event, helper) {
        //Find the text value of the component with aura:id set to "address"
        var address = component.get("v.supportURL");
        var urlEvent = $A.get("e.force:navigateToURL");
        urlEvent.setParams({
          "url": address,
          "isredirect" :false
        });
        urlEvent.fire();
    }
})

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha