You need to sign in to do that
Don't have an account?

How to get id from salesforce community URL
Hi All, I want to get id from parameter in salesforce community into apex controller but not able to get it. I tried to use ApexPages.currentPage().getParameters().get('id') but it is not working
If you're using API version 43 and up, you can implement lightning:isUrlAddressable interface and use pageReference attribute. A good example of this was posted here (https://salesforce.stackexchange.com/questions/165650/getting-the-url-parameter-into-lightning-component-using-the-paramname-exp). Below is a recap of the example provided:
Lightning Component:
Controller:
Page Reference Types: https://developer.salesforce.com/docs/atlas.en.us.214.0.lightning.meta/lightning/components_navigation_page_definitions.htm