User messages feed: set default view?
When viewing any user's page (ViewProfilePage), the User Messages Feed component will always default to show "Latest contributions".
When viewing your own user page, the User Messages Feed will default to show the "Topics I've participated in".
I know can create a redirect using JavaScript but this isn't ideal as the page would 'load' and then 'reload'.
I know that the Page Initialization script can be used for URL redirects which would prevent the load/reload from occurring and this would provide a much better user experience.
---
These are two possible approaches / solutions that I'm leaning towards:
Solution 1:
- Redirect links from: community.com/c/user/viewprofilepage/user-id/13
- To: community.com/c/user/viewprofilepage/user-id/13/user-messages-feed/participations
Question 1: does anyone have any insight on how to create a URL Redirect when the window.location.pathname ends with the users' id? ${user.id}
---
Solution 2:
- Set the default dropdown option to "Topics [user] has participated in"
Question 2:
- Anyone how to set the dropdown option default so that when you first view a users' profile page, it is automatically set to"Topics [user] has participated in"?
---
---
Thanks in advance!