3

I was going through the notes about URL Rewriting for a Visualforce based Community, and noticed that while my custom Visualforce Pages mapped correctly, the chatter feed component does not seem to allow hooks for something similar. The example here is if I implement a custom VF page with the <chatter:feed> component on the VF page, and then update some Accounts to show up in my feed, if I click on the Account link in the feed the default page will show up (/001XXXXXXXXXX), and I don't get an opportunity to redirect that link to a page that is styled appropriately (like /CustomAccount?id=001XXXXXXXXX). I put some debug statements in my URL Rewriter and verified it doesn't even get invoked - I'm suspecting it might have something to do with the Chatter Feed being rendered via Javascript or something similar.

Is the only workaround here (to use that component) creating new Visualforce pages to represent the View action of these objects and somehow determine whether it is being loaded in a Community or not? I'd prefer not to get invasive with the internal Salesforce org, and at that point I'd just succumb to implementing the Chatter Feed manually.

Interestingly, the chatteranswers components have an attribute for useUrlRewriter, but no other components do.

1

I've successfully been able to use javascript/jquery to modify the links in the feed. This method was recommended and implemented by consultants from Salesforce.

| improve this answer | |
  • Can you provide some example code demonstrating this approach? – Mark Pond Apr 23 '14 at 18:13
  • please provide some code for answering the question properly – highfive Apr 23 '14 at 18:32
  • 1
    I also explored this route by basically finding all the possible links in the Chatter Feed (User objects + all the Objects available to the Community users), and then writing "onclick" handlers to change the target URL when redirecting. It works as long as you don't forget anything, but seems very hacky. – Michael Welburn Apr 28 '14 at 13:36

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.