You need to sign in to do that
Don't have an account?
Sam Swann
Redirecting to URL based on selected menu item?
Hi
I am using: lightning:buttonMenu for the user menu in my portal.
I am not sure how to set params to have the appropriate URLs to.
Any suggestions are welcome.
I am using: lightning:buttonMenu for the user menu in my portal.
I am not sure how to set params to have the appropriate URLs to.
Any suggestions are welcome.
Can someone please repond to my question?
Thanks.
what value have store in your selectedMenuItemValue variable ?
If it store tab name like [home , My Profile or Logout] then you can add a conditional statement for redirect to URL
for example :
Hopes it helps you
thanks let me know if it helps you
Thanks sfdcmonkey.com
That's really helpful. Thanks.
With respect to Profile page, I need to access the current login user id. Anyways I am using a Init method in the controller to get the current logged in user. But, how can I concatinate the user id to the URL?
I thought this would do it, but that's not working. Could you please help me with this?
Thanks,
Sam
so what is exact URL to redirect profile page on community ?
/profile/:recordId
The recordId should be userId. So I am trying to get the Id concatenated at the end of the redirecting URL.
Let me know if you have any further questions.
Thanks
"url": '/profile/' + component.get("v.user.Id");
?
DON'T use ' ; ' semi comma after "url": '/profile/' + component.get("v.user.Id");
use below code once now it's works
let me know if it helps
thanks
I have fixed the issue by trail-and-error and it worked with this below piece: I appreciate your time.
Thanks
I also want to implement something like this but i want to add condition for record type.
I have written condition like this. but this is not working, error is coming as unexpected String. Could you please help me here to resolve the issue.
Thanks
Neeru
I have following code written for lightning component
here is my condition the condition works fine but it gives me response as Visit Baidu! link
iam stucked here i want to redirect this to particular URL rather than giving me link, Is their anyway so that i can skip this link and it will redirect to the URL directly without giving me link
<aura:if isTrue="{!con.BillingCountry =='China'}">
<a href="https://map.baidu.com"> Visit baidu!</a>
</aura:if>
Please help here iam stuck in this.
Thanks
Pushpesh