Redirect homepage to My Activities page upon login.



  • Socorro Fernandez
    Community Moderator

    Hi Amie,

    I believe I was able to get a script to work as you described but I ended up placing the following code at the very end of home_page.hbs :

    $(document).ready(function() {
    if ((HelpCenter.user.role=="end_user")||(HelpCenter.user.role=="anonymous")) {

    I originally put this is script in the JS file but it continued to reload the page since I didnt have another condition to compare the current page and to not run the script. I decide to put the above code on the home_page.hbs which fixed the issue since it will only run if a user goes to the homepage.

    Please let me know if you have any questions or if you run into anything with this.


  • Sushant Awalekar
    Community Moderator

    Hi Amie,

    I have tested the same code snippet in my helpcenter and its working as expected.So Can you provide more details on where you have added this code in script.js ? 


Please sign in to leave a comment.

Powered by Zendesk