Redirect a link from the Community Topics page

답변함

5 댓글

  • Ifra Saqlain
    Community Moderator
    Zendesk Luminary
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    Hi fkrugerx

    Follow the below points:-

    i). Go to the 'community_topic.hbs' page

    ii). Add the template name via copy-paste the below code at the top area..

    <script>
    var tempName = 'community-topic-page';
    </script>



    Screenshot:-

     

    iii). Now, go to thescript.js file and paste the code at the bottom area.

    if(tempName == 'community-topic-page') {
    var _x = $("a.striped-list-title:contains(Release Notes)").attr("href", "TYPE YOUR EXTERNAL URL");
    }


    Screenshot:-




    Add your URL here:-

     

     

     

    If any issue do let me know :)

     

    Thanks

    Team

    0
  • Scott Wallace

    Hi fkrugerx and Ifra Saqlain I'm trying to do the same thing with one of our community sections but unfortunately the redirect doesn't work. I've used the exact same code as above but replaced the contains value to look for "Announcements" as that's our section title.

    The external URL has been updated to be the section within Guide for our new announcements too and nothing seems to happen unfortunately. fkrugerx Were you able to get the code working as intended?

    0
  • Ifra Saqlain
    Community Moderator
    Zendesk Luminary
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    @Scott Wallace, can you share the URL of that page where you want to do the changes regarding external URL?, then I will share the exact solution for your query.

    If not, then share the screenshot of that section and page name as well.

    0
  • Scott Wallace

    Ifra Saqlain The community page is here and it should redirect to this section in Guide.

    The code looks as follows:-

    0
  • Ifra Saqlain
    Community Moderator
    Zendesk Luminary
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    Scott Wallace, use the given code

    $("a.button.button-large:contains(What's New?)").attr("href", "https://connect.act-on.com/hc/en-us/categories/13386837131927-What-s-New");

     

    0

댓글을 남기려면 로그인하세요.

Zendesk 제공