I am using Salesforce Communities (Napili template) and created a custom Community page for custom use

I want to have a page with some parameters as standard topic detail page having


I want my page url to be like /customPage/:param1/:param2, but while creating page there is no option to set parameters.

Is there any way or work around for it?

I already tried by setting query parameters through javascript and read it in controller js but in this case these parameters are always there, they are not going away when we navigate to any other pages.


  • 1
    For Visualforce, there is no mapping of URL patterns to pages. You could also try the Hash-Bang URL approach but you still need to carry the information over to new links - Angular has routing for that. – Keith C Feb 24 '16 at 12:31
  • I am facing the same issue of passing the parameters. Did you get any solution ? – Nirdesh Kumar Jun 29 '16 at 20:16
  • @Nidesh I used the native query parameters and parsing them in doInit method of components itself. – Basant Kumar verma Oct 1 '16 at 6:52
  • Here (success.salesforce.com/ideaView?id=0873A000000CLheQAG) is an idea I have created for the same, please vote it so we can get it worked – Basant Kumar verma Oct 1 '16 at 7:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.