You need to sign in to do that
Don't have an account?
rashmi 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
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
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