2

We are working on a custom login experience for our partner users where we want to redirect them to a certain community builder page after login. => goal of this page is to allow the partner user to select for which Account he will work so the visibility of certain elements in the community is related to that chosen account.

Edit: rephrased question: How can I get the URL (page reference) of a custom community builder page. Visualforce pages use the syntax Page.SomeRandomName. Does the same syntax exist for community builder pages or should I hardcode it?

2

You could create a lightning component, however, this would involve having a server side conotroller (apex) to check for the users profile (make sure they are a partner), then, the redirection would take place in your client side controller once you have validated the users profile, using force:navigateToURL

| improve this answer | |
  • But how do I know the URL? The only way is to hard code it? Or is there a syntax similar to Page.VFpageNamr for community builder pages? – Nielsm Apr 3 '18 at 16:11
  • its not clear how/what page you want your users to be redirected to, will you give them a choice? or will it always be to a specific page? either way, you can build a relative path in your client side controller. Maybe you can open a new post with how and what it is you are attempting (code wise that is) – glls Apr 3 '18 at 16:14
  • This is explained in my question. After login we show a page where the user can select the client he wants to work for. But actually it does not really matter which page it is. I just want to redirect to A custom community builder page after login... – Nielsm Apr 10 '18 at 14:21

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.